Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Help With A Variable And Functions
Hi Gang
I need some help with variables with functions. I've got a main function that does some processing with a variable MyValue. I need to create a sub function that changes the value of MyValue so that when the sub function is done the main function knows what the new value of MyValue is. How do I do this??? Please help, Andy Public Sub MyMainFunction() MyValue = 10 Call MySubThatChangesMyValue ...more processing that relies on the changed MyValue... End Sub ------------------------------------------------ Sub MySubThatChangesMyValue() ....some code that changes MyValue.... End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Count Num and Sum functions as a variable | Excel Programming | |||
Add Description of Variable for User-Defined Functions | Excel Programming | |||
How to set up variable data ranges in nested functions | 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 | |||
are variable table-array names in functions possible? | Excel Discussion (Misc queries) |