Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I can successfully pass at least one variable to a function but I cannot pass multiple for the life of me. here is an example something simple like trying to send a box to hide a group of 2 buttons as visible Private Sub cmdHideButtons_Click() hidegrp(cmdButton1.visible, cmdButton2.visible) End Sub Function hidegrp(Value1 as Boolean, Value2 as Boolean) Value1 = False Value2 = False End Function Now this function Wont work, but i just wanted to illistrate the principle of passing 2 variables. now if I did it with just one variable it works fine, other wise it gives me an error *Compile error : Expected: =*. All i want to know is why it does this and is there a way around it -- Xiazer ------------------------------------------------------------------------ Xiazer's Profile: http://www.excelforum.com/member.php...o&userid=31581 View this thread: http://www.excelforum.com/showthread...hreadid=535970 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Functions/Formulas to count multiple variables | Excel Worksheet Functions | |||
LOGICAL FUNCTIONS WITH MULTIPLE VARIABLES | Excel Worksheet Functions | |||
Passing Variables | Excel Discussion (Misc queries) | |||
Passing variables from one sub to another | Excel Programming | |||
passing variables | Excel Programming |