Macro was copied from forum and pasted but compile Error: Syntax Error message was given at the following line. What is wrong. I have not used macros in MS Word before this.
Balance = Val(Right(numtext$, Len(numtext$) - Len(millions) -
Len(billions)))
Regards
Zaigham
Because the macro was posted from software that limits the length of the lines, an unwanted line break was inserted into the code. Those two lines should be one line, like this:
Balance = Val(Right(numtext$, Len(numtext$) - Len(millions) - Len(billions)))
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ:
http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.