+ Reply to Thread
Results 1 to 3 of 3

Global Variables

  1. #1
    Registered User
    Join Date
    07-15-2010
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    51

    Global Variables

    How Do I set global variables,

    The variables are on a worksheet.
    When macro "XX" runs it checks the variable, then runs.

    When running "XX' three or four times right after another. Each time "XX" runs it check the worksheet. I think it would be faster to bring the variable into memory and use it every time "XX" runs.

    Would this be faster or am I wasting my time writing the macro to use global variables.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,971

    Re: Global Variables

    Global variables should generally be avoided. I'd leave it as it is unless it is causing a problem?
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    07-15-2010
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    51

    Re: Global Variables

    Thanks, But how I do it?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1