Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
Example: Have 2 worksheets which have Public stType as String in General Declaration. When an option button is selected in worksheet 1 then stType = "Testing" What I would like is to have the stType = "Testing" be in worksheet 2 as well. This will cut down on refering back to which option button was selected in worksheet 1. I hope this make sense. Thanks Noemi |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Noemi
If you declare your variable in a module (not on the worksheet) as Public stType as String it will be global in scope and both WS's can read/write it. NickHK "Noemi" wrote in message ... Hi Example: Have 2 worksheets which have Public stType as String in General Declaration. When an option button is selected in worksheet 1 then stType = "Testing" What I would like is to have the stType = "Testing" be in worksheet 2 as well. This will cut down on refering back to which option button was selected in worksheet 1. I hope this make sense. Thanks Noemi |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Nick
Thank you it worked, never occured to me. Noemi "NickHK" wrote: Noemi If you declare your variable in a module (not on the worksheet) as Public stType as String it will be global in scope and both WS's can read/write it. NickHK "Noemi" wrote in message ... Hi Example: Have 2 worksheets which have Public stType as String in General Declaration. When an option button is selected in worksheet 1 then stType = "Testing" What I would like is to have the stType = "Testing" be in worksheet 2 as well. This will cut down on refering back to which option button was selected in worksheet 1. I hope this make sense. Thanks Noemi |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
merge multiple worksheets from multiple excel files into oneworksheet | Excel Discussion (Misc queries) | |||
how to make a macro to clear multiple cells from multiple worksheets? | Excel Worksheet Functions | |||
Delete Blank Rows Code - Multiple Worksheets - Multiple Documents | Excel Discussion (Misc queries) | |||
How do I search a text string in many excel worksheets (files)? | Excel Worksheet Functions | |||
How do I search for a string across multiple worksheets in Excel? | Excel Worksheet Functions |