Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
why is it saying sheetcnt is "variable not defined" how to do a global
variable to share over multiple functions in vba for excel? Dim sheetcnt As Integer Private Sub cmdImport_Click() sheetcnt = 1 |
#2
![]() |
|||
|
|||
![]()
Hi Daniel,
XL: Scope of Variables in Visual Basic for Applications http://support.microsoft.com/default...;en-us;Q141693 --- HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001] My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm Search Page: http://www.mvps.org/dmcritchie/excel/search.htm "Daniel" wrote in message ... why is it saying sheetcnt is "variable not defined" how to do a global variable to share over multiple functions in vba for excel? Dim sheetcnt As Integer Private Sub cmdImport_Click() sheetcnt = 1 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I can define a name, but I cannot use the name - menu Insert-Name-Use is blank | Excel Discussion (Misc queries) | |||
How can I assign a range starting cell based on a variable locati. | Excel Worksheet Functions | |||
make a vlookup using a variable path | Excel Worksheet Functions | |||
I Need VBA Assistance for global variable question | Excel Discussion (Misc queries) | |||
change function variable prompts?? | Excel Worksheet Functions |