Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I have a userform, and you enter a number. Then based on the input the userform runs code that uses the number. Usually I have the input box, where the number is input, linked to the worksheet, then the code references the worksheet x = Sheets("Sheet1").range("a1").value then it does the code, but is their a direct way to set variables using the input in the userform. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Jeff,
It depends on the control, but something like Variable = UserformName.ControlName.Value ..Value might be .Text, etc. depending on the control HTH, Bernie MS Excel MVP "Jeff" wrote in message ... Hi, I have a userform, and you enter a number. Then based on the input the userform runs code that uses the number. Usually I have the input box, where the number is input, linked to the worksheet, then the code references the worksheet x = Sheets("Sheet1").range("a1").value then it does the code, but is their a direct way to set variables using the input in the userform. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Defining UserForm Caption from a Variable | Excel Worksheet Functions | |||
Userform button setting variable from formula | Excel Discussion (Misc queries) | |||
Userform button setting variable from formula | Excel Discussion (Misc queries) | |||
Sum cells based on a row variable and seperate column variable | Excel Worksheet Functions | |||
why is it saying sheetcnt is "variable not defined" how to do a global variable to share over multiple functions in vba for excel? | Excel Worksheet Functions |