Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Using SET
Using SET
Resolved · Low Priority · Version 2003
carolina has attended:
Excel VBA Intro Intermediate course
Excel VBA Intro Intermediate course
Using SET
In which situation do you use SET when you using variables?
For upcoming training course dates see: Pricing & availability
RE: Using SET
Hi Carolina
When you declare variables some variable types are Objects.
When assigning values to Object variables you need to Set the data. For example:
Non Object
Dim Counter As Integer
Counter = 1
Object
Dim MyRange As Range
Set MyRange = Range("A5:M500")
Hope this helps
Carlos
Thu 27 Nov 2008: Automatically marked as resolved.
|
