Pinaceous
Well-known Member
- Joined
- Jun 11, 2014
- Messages
- 1,113
- Office Version
- 365
- Platform
- Windows
Hey Everybody!
I'm working with a sheet upon I have a private sub to provide a specific numberformat for a specific range:
Now the code works well situated in the private sub but when I protect the workbook with a password the code produces this message popup error:
Can someone help me run this numberformat code with the workbook locked?
Any suggestions would be appreciated!!!
Thanks,
pinaceous
I'm working with a sheet upon I have a private sub to provide a specific numberformat for a specific range:
VBA Code:
Range("AZ30:AZ36").NumberFormat = "###,###,##0 ""KG"""
Now the code works well situated in the private sub but when I protect the workbook with a password the code produces this message popup error:
Code:
Unable to set the NumberFormat property of the Range class
Can someone help me run this numberformat code with the workbook locked?
Any suggestions would be appreciated!!!
Thanks,
pinaceous