Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default 2Q:Indirect worksheet selection in macro, Calc off for specific sh

I'm having trouble finding the code to use within a macro to select a
worksheet based on the value entered into a certain cell.

What I have is a worksheet for entering data and a macro that organizes and
copies the data to other sheets, one being a catch-all for all data and
another being a sheet corresponding to a specific value entered in B2.
Options for data in B2 are validated from a list in another sheet, and a
worksheet of exactly the same name already exists for each option available
in B2. I just need the macro to choose the sheet corresponding to B2.

2nd question: Is it possible to change a specific sheet to manual
calculation, or must the calculation method selected always affect the
workbook as a whole?

Thanks all.

Ryan
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default 2Q:Indirect worksheet selection in macro, Calc off for specific sh

In case anyone comes up with this message in a future search - I know I find
90% of the answers by searching rather than bugging others for help -

Worksheets(ActiveSheet.Range("B2").Value).Activate

Where B2 is the cell containing the desired sheet name can be used.
Depending on your macro you may want to put a Sheets.("whatever").Select
command in prior to make sure you're taking the correct cell from the correct
sheet.

Figured it out on my own, finally.

"seed" wrote:

I'm having trouble finding the code to use within a macro to select a
worksheet based on the value entered into a certain cell.

What I have is a worksheet for entering data and a macro that organizes and
copies the data to other sheets, one being a catch-all for all data and
another being a sheet corresponding to a specific value entered in B2.
Options for data in B2 are validated from a list in another sheet, and a
worksheet of exactly the same name already exists for each option available
in B2. I just need the macro to choose the sheet corresponding to B2.

2nd question: Is it possible to change a specific sheet to manual
calculation, or must the calculation method selected always affect the
workbook as a whole?

Thanks all.

Ryan

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
make a macro 'worksheet specific' Lori Excel Discussion (Misc queries) 11 October 29th 07 12:38 AM
Linking a selection in a drop down list to a calc in another cell hyweledwards Excel Worksheet Functions 6 July 4th 07 04:50 PM
Worksheet, selection macro Steve Excel Worksheet Functions 5 November 2nd 06 01:26 AM
Help with a macro to open to a specific worksheet EAHRENS Excel Worksheet Functions 0 November 30th 05 08:36 PM
Using Indirect & Creating a worksheet Macro Bill Healy Excel Worksheet Functions 1 November 5th 04 10:51 AM


All times are GMT +1. The time now is 11:46 AM.

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

About Us

"It's about Microsoft Excel"