Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / May 2008

Tip: Looking for answers? Try searching our database.

Macro can't change currency symbol

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob Flanagan - 17 May 2008 12:31 GMT
This is a strange one.  I have a person in the UK who can manually change
the format of cell from Euro's to $'s.  But, if we record the macro to do
that same action and run it on other cells (or the original cell after doing
an undo), it changes the format from Euro's to British pounds.  The code in
the macro is just one line, the recorded new cell format.

Any ideas?

Bob
Gary''s Student - 17 May 2008 15:08 GMT
Post the line.
Signature

Gary''s Student - gsnu200786

Mais qui est Paul - 17 May 2008 18:12 GMT
Bonsour® Bob Flanagan  avec ferveur  ;o))) vous nous disiez :

> This is a strange one.  I have a person in the UK who can manually
> change the format of cell from Euro's to $'s.  But, if we record the
[quoted text clipped - 3 lines]
> recorded new cell format.
> Any ideas?
Sub Macro1()
     Selection.NumberFormat = "[$£-809]#,##0.00"
       MsgBox "selected is now Pound United kingdom"
       Selection.NumberFormat = "[$$-409]#,##0.00"
       MsgBox "selected is now selected US Dollar"
       Selection.NumberFormat = "#,##0.00 [$CAD]"
       MsgBox "selected is now Canandian Dollar"
End Sub

HTH
Signature

@+
;o)))

Bob Flanagan - 17 May 2008 22:46 GMT
Many thanks.  I will give it a try.  Any idea why the $ sign is needed in of
each, especially the double $$ for US$'s?

Bob

> Bonsour® Bob Flanagan  avec ferveur  ;o))) vous nous disiez :
>
[quoted text clipped - 15 lines]
>
> HTH
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.