ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Parsing Arguments Question (https://www.excelbanter.com/excel-programming/340874-parsing-arguments-question.html)

skuzapo

Parsing Arguments Question
 

Hi all,

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

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

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

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

--
skuzap
-----------------------------------------------------------------------
skuzapo's Profile: http://www.excelforum.com/member.php...fo&userid=2743
View this thread: http://www.excelforum.com/showthread.php?threadid=47003


Gary''s Student

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




All times are GMT +1. The time now is 05:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com