G
Guest
I have inherited an old word basic program. Part of the code in the program searches for text in a word document that has an @ sign and two letters after it and replaces it with blanks, i.e. @AB gets replaced with "". Here is the code
WordBasic.EditReplace Find:="\@??", Replace:="", Direction:=0, PatternMatch:=1, Format:=0, Wrap:=1, ReplaceAll:=
What I want to do is increase the number of characters from 2 after the @ sign to 3, i.e. @ABC gets replaced with "" or @AB gets replaced with "". When I try and simply add another ? (\@???), it doesn't work. Has anyone done this before? What am I doing wrong
Thanks
Mar
WordBasic.EditReplace Find:="\@??", Replace:="", Direction:=0, PatternMatch:=1, Format:=0, Wrap:=1, ReplaceAll:=
What I want to do is increase the number of characters from 2 after the @ sign to 3, i.e. @ABC gets replaced with "" or @AB gets replaced with "". When I try and simply add another ? (\@???), it doesn't work. Has anyone done this before? What am I doing wrong
Thanks
Mar