thousands comma separator in VBA

  • Thread starter Thread starter Wendy Francis
  • Start date Start date
W

Wendy Francis

Hi
I have variables defined in an Excel macro as Long, and I want them to
return the value in a Word Report with thousand comma separators - is there
a way of doing this please?
Wendy Francis
(e-mail address removed)
 
Hi Wendy

You can use FormatNumber() to format your variable before you produce
your report.

eg. YourVariable = FormatNumber(YourNum, , , , vbTrue)

Regards
Shaun
 

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