Suppressing the decimal

EE Pros,

I have a Workbook that allows me to globally change the formatting for Currency.  If you open the Workbook you will see that by selecting a currency, you can change the format in both tabs.  Here's the question, how do I suppress the decimal point to 0?  Right now, if I change it in the cell, and then change the currency, I still get a 2 decimal point answer.

Help!

Thank you in advance,

B.
Suppress-decimals.xlsm
Bright01Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

[ fanpages ]IT Services ConsultantCommented:
Hi B,

There is a VBAProject password associated with the Visual Basic for Applications code within the "Suppress-decimals.xlsm" workbook attached above.

I/we are going to need to know this password to advise on what needs to be changed (within the code) to accommodate your request.

If you have the password, please can you remove it from the workbook & then attach the unprotected version of the file?

If you do not know what the password is, are you able to find it from the author of the code within this workbook?

BFN,

fp.
0
Bright01Author Commented:
Ben,

Sorry.  I've removed the Protection.

Thanks!

B.
Suppress-decimalsv2.xlsm
0
[ fanpages ]IT Services ConsultantCommented:
I'm sorry, but there is still a VBProject password applied to the second attachment.

B)ye F)or N)ow,

fp.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

Bright01Author Commented:
BFN,

So sorry.  OK....removed the VBA Password.  Should have complete access now.

B.
Suppress-decimalsv3.xlsm
0
[ fanpages ]IT Services ConsultantCommented:
:)

Thank you.

I can see from the code (now it is unprotected) that if you change the Cell (Number) Formats of the range [C4:C12] upon the [Currency] worksheet, the corresponding Currency ([B4:B12]) when selected in cell [D4] will apply the same NumberFormat to cell [C9] upon the [Customer - Inputs] worksheet.

That is, if you change the Format of cell [C6] from:

(Accountancy, 2 decimal places, "£" symbol prefix)
_-[$£-809]* #,##0.00_-;-[$£-809]* #,##0.00_-;_-[$£-809]* "-"??_-;_-@_-

to, say:

(Accountancy, 0 decimal places, "£" symbol prefix)
_-[$£-809]* #,##0_-;-[$£-809]* #,##0_-;_-[$£-809]* "-"??_-;_-@_-

Then, when "Pounds" is selected, the same Format will be applied (i.e. without any decimal places).

If "Pounds" is already selected when you change the Format of cell [C6], then you will need to select another Currency, & then select "Pounds" again, before the updated Format is applied.

Please ask for clarification if that description was difficult to follow.

BFN,

f)anp)ages
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bright01Author Commented:
Perfect!  Why didn't I try that???   Thank you very much.  Seems simple now.

B.
0
[ fanpages ]IT Services ConsultantCommented:
:)

No problem.  I guess it wasn't obvious... I didn't think of trying it before reading the code either!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Applications

From novice to tech pro — start learning today.