Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

currency formatting

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Currency Formatting

Currency Formatting

ResolvedVersion 2003

Erin has attended:
Excel VBA Intro Intermediate course

Currency Formatting

When writing code, how do you specify figures in dollars (or other currencies) as opposed to the default of

RE: Currency Formatting

Hi Erin

Thank you for your question

To accomplish this you set the number format property of the selection .

I have added the line of code to a text file and uploaded it as the forum converts the currency symbol(for Yen) into its asciii code

The trick is to enter thedollar symbol, followed by the Yen symbol.

Regards

Stephen



Attached files...

CurrencyFormatting.doc

Mon 12 Jan 2009: Automatically marked as resolved.

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Bracketed negative numbers

Often Excel users wish to display negative numbers in colour red and bracketed

Intstructions
Step1. Select Format > Cells menu options. Within Numbers tabsheet, select Category = Custom.
Step 2. Select a type such as #,##0;[Red]-#,##0;; that specifies a colour in square brackets.
Step 3. Amend as follows; #,##0;[Red](#,##0;;

Notes: Excel formatting featues are of the form
"Positive; Negative;Zero;Text" separated by semicolon.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.