Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default String over multiple Worksheets

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default String over multiple Worksheets

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default String over multiple Worksheets

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
merge multiple worksheets from multiple excel files into oneworksheet Shamoun Ilyas Excel Discussion (Misc queries) 5 November 19th 08 09:48 PM
how to make a macro to clear multiple cells from multiple worksheets? [email protected] Excel Worksheet Functions 2 October 18th 07 04:31 PM
Delete Blank Rows Code - Multiple Worksheets - Multiple Documents BenS Excel Discussion (Misc queries) 3 June 29th 07 12:20 AM
How do I search a text string in many excel worksheets (files)? TC628 Excel Worksheet Functions 0 February 8th 06 12:09 AM
How do I search for a string across multiple worksheets in Excel? BBiletch Excel Worksheet Functions 2 April 5th 05 11:59 PM


All times are GMT +1. The time now is 09:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"