Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
STATIC VARIABLE NOT AVAILABLE IN ANOTHER MODULE
DEAR ALL
I have declared in one sheet -varchk- variable as public and in the sub procedure declared it as static -static varchk-. I am carrying the results in a worksheet to another module thro this static variable varchk. But the value of this varchk is not showing in the sub procedure in the module. Pls adv. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
STATIC VARIABLE NOT AVAILABLE IN ANOTHER MODULE
Declare the variable one time only, in a standard module above any subs or
functions. -- Gary''s Student gsnu200703 "CAPTGNVR" wrote: DEAR ALL I have declared in one sheet -varchk- variable as public and in the sub procedure declared it as static -static varchk-. I am carrying the results in a worksheet to another module thro this static variable varchk. But the value of this varchk is not showing in the sub procedure in the module. Pls adv. |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
STATIC VARIABLE NOT AVAILABLE IN ANOTHER MODULE
DEAR GARYS
Thnks yr response. yes that works. I am able to do the calculations in modules and carry these variables to worksheet procedures. What i need is asf: In worksheet procedure using a command button click one result is obtained say total cargo figures and say the variable name is - cgofigs-. I want this variable -cgofigs- to be taken to standard module to carryout other calculations using this variable -cgofigs- result. pls advice. On Feb 1, 9:38 pm, Gary''s Student wrote: Declare the variable one time only, in a standard module above any subs or functions. -- Gary''s Student gsnu200703 "CAPTGNVR" wrote: DEAR ALL I have declared in one sheet -varchk- variable as public and in the sub procedure declared it as static -static varchk-. I am carrying the results in a worksheet to another module thro this static variable varchk. But the value of this varchk is not showing in the sub procedure in the module. Pls adv. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Subtotaling variable data in a macro | New Users to Excel | |||
Aling multiple sets of data by header column | Excel Discussion (Misc queries) | |||
variable height variable width stacked bar charts | Charts and Charting in Excel | |||
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 | |||
I Need VBA Assistance for global variable question | Excel Discussion (Misc queries) |