Neil has attended:
Excel VBA Intro Intermediate course
Change an Object's Property
When can I just use code like:
Object = Value
and when do I need to use code like:
Set Object = Value
I'm not sure which applies in which case. Thanks!
RE: Change an Object's Property
Hi Neil
Thank you for your question
Simply put when you a assigning a value to an excel object then you must use the set command. So if you are naming a workbook, worksheet, range or other similar object use the set command.
however, if you are assigning a value to a simple variable then just use the variable = value syntax
Regards
Stephen