using set

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Using SET

Using SET

resolvedResolved · 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?

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.

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Removing border lines on the keyboard

Highlight your cell(s) that have boreders on them and press CTRL + SHIFT + _, this will then remove the border lines.

View all Excel hints and tips


Server loaded in 0.09 secs.