"Peterwnixon" wrote:
> Does anybody know of a why that I can get currency to automatically update
> throughout a work book. Ideally i would like to have the user select a
> currency from a drop down list - and then this would then automatically
> update all currency throughout the workbook.
>
> Please help I would greatly appreciate it.
> --
> Kind regards,
>
> Peter Nixon
Thanks for looking at this for me.
I am just trying to change the display symbol automatically throughout the
workbook i.e. "$10,000" to "£10,000" - so no changes in the actual currency
value amount.
--
Kind regards,
Peter Nixon
You can change the currency symbol from the Format menu, Cells, then the
Number tab of that dialog. Choose "Currency" in the "Category" list, and
choose your desired symbol in the "Symbol" drop down.
--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)
"Peterwnixon" <peter...@hotmail.com.(donotspam)> wrote in message
news:58B0B79C-2932-45D4...@microsoft.com...
Thank you for the response - however, I did know how to change it. But is
there a way to pre-set up selected cells e.g. a budget colum on seperate
worksheets throughout a workbook - that would automatically change to the
desired currency. I.e. by setting up a drop down list I can populate the
entire workbook in one click with the correct currency symbol, rather than
individually changing the currency symbol from the Format menu, Cells, then
the number tab of that dialog. Choose "Currency" in the "Category" list, and
choose your desired symbol in the "Symbol" drop down.
Very appreciate your help with this.
--
Kind regards,
Peter Nixon
Very appreciate your help with this.
--
Kind regards,
Peter Nixon
Thank you for all the great input though, and if I knew what a "floating
modeless userform " or "option buttons on the spreadsheet (that don't
print)," I may have my answer. A few more years practice and I will know
though - so thank you once agian for the input - an dI hope you can help!
insert a new worksheet in your workbook & name it "Summary" (without
quotes).
the up in your main toolbar, right click & select "Control Toolbox"
toolbar. drag it to one side & have it dock itself out of the way.
select "option button" on that toolbar (if you hover over it, it'll
tell you the names). the cursor will change to a cross. drag that
around in your spreadsheet & make the option button. your formula bar
will now show "=EMBED("Forms.OptionButton.1","")".
right click on the newly-created option button & check "properties".
change the CAPTION (not the name) to USDollars & then click out into
the spreadsheet.
go back to your original worksheet & name the range that encompasses
all the cells in which the symbol is to be changed - i'm going to call
it ChangeSymbol. at this time, (in my sample) all the amounts in
ChangeSymbol are formatted with the pound symbol.
go back to the Summary worksheet. double-click on the option button.
the visual basic editor will open up and your cursor will be blinking
within these 3 statements:
Option Explicit
Private Sub OptionButton1_Click()
<cursor here>
End Sub
copy & paste these 2 statements into the space where your cursor is
blinking:
Application.Goto Reference:="ChangeSymbol"
Selection.NumberFormat = "[$$-409]#,##0.00"
OptionButton1.Value = False
so now you have:
Option Explicit
Private Sub OptionButton1_Click()
Application.Goto Reference:="ChangeSymbol"
Selection.NumberFormat = "[$$-409]#,##0.00"
OptionButton1.Value = False
End Sub
still with me? VBG
up in "file", choose "close & return to microsoft excel".
at the top of the control toolbox there is a triangle/ruler/pencil
button - it's called "design mode." click this to turn off design mode
(it turned on automatically when you selected the option button to draw
it.
now click your USDollars option button.
voila!
:)
the way i got this:
Application.Goto Reference:="ChangeSymbol"
Selection.NumberFormat = "[$$-409]#,##0.00"
was by formatting that range myself, with the macro recorder turned on,
and seeing what it wrote to do it.
i don't know if this will actually help you do this, but it's a start.
obviously you would want to have an option button for each format you
want (pounds, etc.).
questions?