Chi Wah has attended:
Excel VBA Intro Intermediate course
Excel VBA Intro Intermediate course
Excel VBA
why do you use Set in some variable declarations?
RE: Excel VBA
Chi Wah
Thanks for the question.
The word Set is used in VBA to assign an Object to an Object type variable. eg
Dim MyRange as Range
Set MyRange = Sheets("Sheet1").Range("A1:D20")
Carlos