LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Formatting Variables imported into Word...


I have a macro that takes a value from an excel spreadsheet and insert
it into a work document at a bookmark. The number is a currency and I'
like it to be entered in the work document in this format.....

£xx,xxx,xxx.xx rather than £xxxxxxxx.xx which is what currentl
happens, the script I am using is this...

appWD.ActiveDocument.Bookmarks("ValueNumber").Rang e
Format(strValueNumber, "£0.00")

'strValueNumber is from the excel spreadsheet
'ValueNumber is the bookmark in the word document

How would I (if it's possible) modify this to add the commas in

--
ChrisMattoc
-----------------------------------------------------------------------
ChrisMattock's Profile: http://www.excelforum.com/member.php...fo&userid=3391
View this thread: http://www.excelforum.com/showthread.php?threadid=54704

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting with imported data Connie Excel Discussion (Misc queries) 2 December 8th 09 06:29 AM
Formatting Imported Data JpaulT Excel Discussion (Misc queries) 1 September 13th 07 05:18 PM
eliminating trailing zeroes imported into word document from excel file [email protected] Excel Discussion (Misc queries) 4 June 9th 07 04:08 PM
Formatting Imported Text Kimmerbeth Excel Discussion (Misc queries) 1 December 8th 06 06:51 PM
Why is Excel sheet concatenated when imported into Word? KevinR7 Excel Discussion (Misc queries) 0 October 6th 06 06:55 PM


All times are GMT +1. The time now is 07:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"