using set
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 » Using SET

Using SET

resolvedResolved · Low Priority · Version 2003

replyReply Thu 13 Nov 2008, 16:32Delegate carolina said...

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

replyReply Thu 20 Nov 2008, 09:46Trainer Carlos said...

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.

 

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

Excel tip:

Brighten up your Excel 2010 Spreadsheet by changing the colours of the gridlines

Excel 2010 allows you to change the colour of grid lines instead of keeping them in boring black.

Select the File tab on the Ribbon, click Options, click Advanced, scroll down to ''Display options for this worksheet.'' Next to ''Gridline colour,'' choose your favourite colour, then once you've done this, click OK. Easy!

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