Code error

  • Thread starter Thread starter Stuart
  • Start date Start date
S

Stuart

The following is copied from google, but errors in red when I paste it into
a module:

.NumberFormat = "_(* #,##0_);_(* (#,##0);_(* ""-
""??_);_(@_)"

Can you tell what it should be, please?

Regards
 
This worked for me

With Range("A1")
..NumberFormat = "_(* #,##0_);_(* (#,##0);_(* ""-""??_);_(@_)"
End With

make sure you correct any NG linewrap

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Seems to do the trick.
Many thanks.

Regards.

Bob Phillips said:
This worked for me

With Range("A1")
.NumberFormat = "_(* #,##0_);_(* (#,##0);_(* ""-""??_);_(@_)"
End With

make sure you correct any NG linewrap

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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