Conditional Formatting of Numbers Using VBA

Joined
May 5, 2008
Messages
1
Reaction score
0
I'm an Excel 2003 user and attempting to conditionally format numbers using VBA. I'm struggling with the code and would love help on correctly writing the code. My situation is:

Cell D3 displays text of USD, %, or # based on the output of a formula. I have numbers in cells B6:B45 that I want displayed in the format that appears in cell D3. So, if USD appears in D3, I want the format of the numbers in B6:B45 to appear as $xx,xxx.xx. If % appears in D3, I want the format of the numbers in B6:B45 to appear as xx.xx% and if # appears in D3, I want the format of the numbers to be x,xxx.xx. Thanks for any help to this first time poster!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top