Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default This is a multi-part message in MIME format.------=_NextPart_000_0012_01CAEE06.

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.


 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
last lines of text don't display in text boxes for 1 user David Grana Microsoft Word Help 1 October 7th 08 09:40 AM
Display selected text as white text with black highlight? David Rathert Microsoft Word Help 4 April 29th 07 03:42 AM
How do I display the day of the month using text abcsharon Microsoft Word Help 9 February 8th 07 04:31 PM
Can I display text on startup? Smohrman Microsoft Word Help 1 June 1st 06 05:44 AM
can't edit text-will only display Hoeyboy Microsoft Word Help 1 March 13th 06 11:08 AM


All times are GMT +1. The time now is 08:33 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"