EDUCATED MONKEY
Board Regular
- Joined
- Jul 17, 2011
- Messages
- 218
Yet another up date can some one please tell me how I change this code so that when the conditions in each section of the if else block are satisfied that the “next” can see the “For” and not report the next without for if I can get this sorted then just maybe the other post will be come redundant
i sure that ther must be guys like my self stuck on this kind of thing I have looked and look through the forum nothing that fits the bill as most have been were end statements have been missed<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o></o>
For Position = WordLen To 1 Step -1 <o></o>
fwsp = True<o></o>
<o></o>
If MyChar = " " And fwsp = True Then<o></o>
fwsp = False<o></o>
Next Position<o></o>
ElseIf MyChar = " " And fwsp = False Then<o></o>
S = Replace(S, " ", "-")<o></o>
Next Position<o></o>
ElseIf MyChar <> " " And fwsp = False Then<o></o>
Next Position<o></o>
End If<o></o>
Next Position
i sure that ther must be guys like my self stuck on this kind of thing I have looked and look through the forum nothing that fits the bill as most have been were end statements have been missed<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o></o>
For Position = WordLen To 1 Step -1 <o></o>
fwsp = True<o></o>
<o></o>
If MyChar = " " And fwsp = True Then<o></o>
fwsp = False<o></o>
Next Position<o></o>
ElseIf MyChar = " " And fwsp = False Then<o></o>
S = Replace(S, " ", "-")<o></o>
Next Position<o></o>
ElseIf MyChar <> " " And fwsp = False Then<o></o>
Next Position<o></o>
End If<o></o>
Next Position
Last edited: