Pinaceous
Well-known Member
- Joined
- Jun 11, 2014
- Messages
- 1,113
- Office Version
- 365
- Platform
- Windows
Good Day Everyone!
I'm running a VBA code that tells the cell in a specific range its NumberFormat.
For Example:
My question arises when I'm trying to put ###,###,##0.000 "KG" as the NumberFormat.
For Example:
It comes up totally red on the second code and I cannot figure out why?
I'm thinking it has something to do with the use of the double brackets of " but I don't know how to rewrite this to make sense VBA wise.
Can you help?
Please post, if you can.
Thanks,
pinaceous
I'm running a VBA code that tells the cell in a specific range its NumberFormat.
For Example:
VBA Code:
Range("B11:B180").Select
Selection.NumberFormat = "0000"
My question arises when I'm trying to put ###,###,##0.000 "KG" as the NumberFormat.
For Example:
VBA Code:
Range("B11:B180").Select
Selection.NumberFormat = "###,###,##0.000 "KG""
It comes up totally red on the second code and I cannot figure out why?
I'm thinking it has something to do with the use of the double brackets of " but I don't know how to rewrite this to make sense VBA wise.
Can you help?
Please post, if you can.
Thanks,
pinaceous