|
-
Apr 27th, 2000, 10:47 PM
#12
Of course I tried it and it works fine
'ShowCentered Me
'Load the Template
rtbCoverLetter.LoadFile "C:\Temp.txt"
'Replace words in brackets with variables
'rtbCoverLetter = Replace(rtbCoverLetter, "#Date#", strProposalDate)
'rtbCoverLetter = Replace(rtbCoverLetter, "#Chron_Number#", strCor_Reference_Number)
iPos = 1
staffCount = lstSelected.ListCount
For idIndex = 0 To staffCount - 1
rtbCoverLetter = Replace(rtbCoverLetter.Text, "Helen", _
***This where I changed staffCount for 1***
(lstSelected.List(idIndex)), 1, 1, vbTextCompare)
Next
'rtbCoverLetter = Replace(rtbCoverLetter, "#Reference#", strRef)
'rtbCoverLetter = Replace(rtbCoverLetter, "#Subject#", strTitle)
'rtbCoverLetter = Replace(rtbCoverLetter, "#ACOTR#", strACOTR)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|