variables
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

Variables

resolvedResolved · Low Priority · Version 2003

replyReply Thu 19 Mar 2009, 16:44Delegate Dean said...

Dean has attended:
Excel VBA Intro Intermediate course

Variables

What is the "SET" command used for when using variables?

Thanks

For upcoming training course dates see: Pricing & availability

replyReply Fri 20 Mar 2009, 14:27Trainer Stephen said...

RE: Variables

Hi Dean

Thank you for your question

The set command is used when allocating a value to an object variable. There are two types of variable. Simple value variables such as strings or integers, take a single value and those values can be allocated without a set command.

For example

strName = "Fred"

Object variables can be set to represent real objects and can then be used to set various propeties of the object

Hence

SET SheetVar = Activesheet


Regards

Stephen

Fri 27 Mar 2009: Automatically marked as resolved.

 

Please browse our web site to find out more about
excel vba courses london and other Microsoft training courses.

Excel tip:

Excel 2010 Shortcuts - Start and End of the Worksheet

Did you know you can quickly move to either the beginning or the end of an Excel Worksheet using just a couple of keys on the keyboard?

Press Ctrl + Home key to move the cursor to cell A1

Press Ctrl + End key to move the cursor to the end of the current worksheet.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard