Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
I have a workbook containing ~60 worksheets in which I would like to hide ~50 of them but have individual worksheets open on demand. The worksheets contain hyperlinks to other worksheets within the same workbook and are simply referenced as an Excel hyperlink. On clicking a hyperlink I would like it to unhide the relevant worksheet, on hitting the Excel Web 'back' button I would like it to rehide the relevant worksheet. Is this feasible as currently constructed or am I looking at additional macros to replace the hyperlinking? Extract of the code doing the worksheet hiding: --- Private Sub Workbook_Open() On Error GoTo ErrorHandler Dim wst As Worksheet 'Ensure the Data sheet is hidden and can't be shown without password ThisWorkbook.Worksheets("Data").Visible = xlVeryHidden 'Ensure the Exchange Rate sheet is hidden and can't be shown without password ThisWorkbook.Worksheets("ExchangeRates").Visible = xlVeryHidden 'protect the Worksheets from alteration For Each wst In ThisWorkbook.Worksheets wst.Protect (PWORD) Next wst 'Unprotect the Exchange Rate Worksheet to obtain Reuters updates ThisWorkbook.Worksheets("ExchangeRates").Unprotect PWORD 'activate the MainMenu worksheet ThisWorkbook.Worksheets("MainMenu").Activate 'define the data range names DefineDataColumns 'sort the specifed data ranges SortDataRanges "Data_AssociatedDealerGroup", "Data_DealerNames", "Data_DealerIDs" SortDataRanges "Data_AssociatedUnitCode", "Data_RMCodes" SortDataRanges "Data_RMUnitCodes", "Data_RMUnitNames" SortDataRanges "Data_AssDealerGrp", "Data_AssMarginTempl" Exit_Workbook_open: Exit Sub ErrorHandler: DisplayError Err.Number, Err.Description Resume Exit_Workbook_open End Sub --- Any help will be greatly appreciated - I have read through the other discussion threads, but I don't see anything specific to my requirements. Regards, |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - unHiding a column affects columns in other worksheets? | Excel Worksheet Functions | |||
(Unsuccessfully!) Unhiding Rows in Excel 2003 | Excel Worksheet Functions | |||
Unhiding worksheets | Excel Discussion (Misc queries) | |||
Unhiding multiple worksheets in Excel 2000 | Excel Worksheet Functions | |||
Unhiding rows in Excel 2003 | Excel Programming |