tags:

views:

27

answers:

1

I'm not a huge fan of formatting cells as a percent in Excel because it automatically multiplies the value by 100.

I want to write my own VBA function that looks for a change in value in a particular cell and adds a '%' to the end of it.

How can I write some code to look for changes automatically?

+1  A: 

Change the format string to 0\%.
The \ escapes the percent character and prevents Excel from multiplying it by 100.

SLaks
jackpotthanks
Soo
Ok, one thing that isn't working is if I type '0', all I see is:'%'I would like the zero to display
Soo
Change the `#` to `0`.
SLaks
Also, I want to be able to programmatically change these formats. What VBA code is necessary to change the format of a cell?
Soo
`someRange.NumberFormat = "0\%"`
SLaks