+ Reply to Thread
Results 1 to 2 of 2

Parsing Arguments Question

  1. #1
    Registered User
    Join Date
    09-21-2005
    Posts
    32

    Talking Parsing Arguments Question

    Hi all,

    Please may someone advise how parsing arguments works (if that's what I need to do)...

    I have two user forms each with their own code. A button on the first one opens the second form. Based on user selections in the first form certain controls on the second are visible or not. The variable to control this is in the code of the first form as it adds up a number of things.

    What I don't know how to do is - how do I tell the second form what the value of that variable is?

    Sorry - not a very challenging question for all the luminaries out there!
    Thanks in advance for your help.

  2. #2
    Gary''s Student
    Guest

    RE: Parsing Arguments Question

    Make your variable static. That is, DIM it outside of both your macros and
    not inside any of them. The first macro can set the variable and the second
    can see the value set by the first.
    --
    Gary''s Student


    "skuzapo" wrote:

    >
    > Hi all,
    >
    > Please may someone advise how parsing arguments works (if that's what I
    > need to do)...
    >
    > I have two user forms each with their own code. A button on the first
    > one opens the second form. Based on user selections in the first form
    > certain controls on the second are visible or not. The variable to
    > control this is in the code of the first form as it adds up a number of
    > things.
    >
    > What I don't know how to do is - how do I tell the second form what the
    > value of that variable is?
    >
    > Sorry - not a very challenging question for all the luminaries out
    > there!
    > Thanks in advance for your help.
    >
    >
    > --
    > skuzapo
    > ------------------------------------------------------------------------
    > skuzapo's Profile: http://www.excelforum.com/member.php...o&userid=27430
    > View this thread: http://www.excelforum.com/showthread...hreadid=470036
    >
    >


+ 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