Formatting a cell for currency

  • Thread starter Thread starter k483
  • Start date Start date
K

k483

What's the VB code for formatting a cell to show currency (with dolla
sign and 2 decimals)? Worksheets("Sheet1").Cells(1,1).?????????=True

What's the syntax?
thank
 
Hi
one easy way: Set your format manually while recording a macro :-)
 
Try something like

Worksheets("Sheet1").Cells(1, 1).NumberFormat = "$#,##0.00"

Regards,

Peo Sjoblom
 

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