Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a project with a couple of userforms and other modules. One of the
userforms applies a filter to a data list in Excel. Under certain criteria I wish to remove the filter (ActiveSheet.ShowAllData) and to avoid this code being executed when the fiter has not been applied (which produces an error), I want to declare an integer variable which will be given one value when the filter is applied and another value when removed. The value of this integer would then determine whether to execute the ShowAllData code. My questions a a) How and where do I declare this integer so that it is available in all procedures applicable to the userform & b) what other (easier?) way could this check be accomplished. Any help much appreciated. Regards Chris Brunt |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Overflow error when declaring variables | Excel Discussion (Misc queries) | |||
Declaring variables in Module vs. Public | Excel Discussion (Misc queries) | |||
Declaring variables | Excel Discussion (Misc queries) | |||
Declaring variables | Excel Discussion (Misc queries) | |||
Declaring Global Variables | Excel Programming |