+ Reply to Thread
Results 1 to 3 of 3

variable scope

  1. #1
    Registered User
    Join Date
    02-09-2005
    Posts
    13

    variable scope

    no chance i could get a variable's scope to include two separate worksheets is there?

  2. #2
    Registered User
    Join Date
    02-09-2005
    Posts
    13
    sorry... two separate workBOOKs is what i meant

  3. #3
    Tushar Mehta
    Guest

    Re: variable scope

    I believe if you create a reference in Book1 to Book2, you can then
    access the Book2 public variables in Book1 with Book2.publicvariable.

    Assuming the above works, why would you want to do that? It is enough
    of an invitation to problems having a public variable within a workbook
    without extending the 'scope' to multiple workbooks. {shudder}

    --
    Regards,

    Tushar Mehta
    www.tushar-mehta.com
    Excel, PowerPoint, and VBA add-ins, tutorials
    Custom MS Office productivity solutions

    In article <[email protected]>,
    [email protected] says...
    >
    > no chance i could get a variable's scope to include two separate
    > worksheets is there?
    >
    >
    >


+ 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