0

All,

I have a macro I use to mark up tables of analytical data. For one specific situation I want to add a "*" to the end of the cell without affecting it's value, which can be done using a custom NumberFormat.

To do this manually you can type General" *" into the custom number format field.

I can't figure out how to do this with VBA.

I tried these, but they didn't work:

cell.NumberFormat = "General" *""
cell.NumberFormat = "General\*"

Any suggestions?

Thanks!

3
  • 1
    "General"" *"" Commented Apr 14 at 19:43
  • 1
    The result you're trying to get to will be entering General " *" into the cell. You need to differentiate between the " symbols that are part of the final string, and the " symbols that enclose the string as a whole. To do that, you need to double up the "s, so you'll need to enter "General"" *""" Commented Apr 14 at 19:47
  • Thanks to both of you! I thought I was close. So frustrating! Commented Apr 14 at 19:58

1 Answer 1

0

Then answer is to use

"General"" *""
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.