Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a large workbook consisting of a menu worksheet and many worksheet
templates. On the menu worksheet, I want to enable the user to select the particular worksheets they need for their job from dropdown lists contained in cells B1:B25. The names of the worksheet templates are subject to change. In other words, the user may add a new duplicate template worksheet to the workbook or they may change the names of any of the existing templates. On the menu, I want a macro that will create a dropdown list in each of cells B1 through B25 that includes all the current worksheet names in the workbook except for a selected few that Ill call menu, Worksheet X, Worksheet Y, and Worksheet Z. If possible, I would like to have the user be able to hyperlink from their dropdown list to the selected worksheets. I dont have much experience with vba therefore any help to a novice would be greatly appreciated. Many thanks in advance Tom. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Tom
Look at this: Sub Menu() Dim Menu As Worksheet Set Menu = Worksheets("Menu") For Each sh In ThisWorkbook.Sheets If sh.Name < "Menu" And sh.Name < "SheetX" Then Menu.Hyperlinks.Add anchor:=Menu.Range("B1").Offset(off), Address:="", _ SubAddress:="'" & sh.Name & "'!A1", TextToDisplay:=sh.Name End If off = off + 1 Next End Sub Regards, Per "tomhelle" skrev i meddelelsen ... I have a large workbook consisting of a menu worksheet and many worksheet templates. On the menu worksheet, I want to enable the user to select the particular worksheets they need for their job from dropdown lists contained in cells B1:B25. The names of the worksheet templates are subject to change. In other words, the user may add a new duplicate template worksheet to the workbook or they may change the names of any of the existing templates. On the menu, I want a macro that will create a dropdown list in each of cells B1 through B25 that includes all the current worksheet names in the workbook except for a selected few that Ill call menu, Worksheet X, Worksheet Y, and Worksheet Z. If possible, I would like to have the user be able to hyperlink from their dropdown list to the selected worksheets. I dont have much experience with vba therefore any help to a novice would be greatly appreciated. Many thanks in advance Tom. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
XL07 create data validation list containing the names of each shee | Excel Worksheet Functions | |||
Create auto updating data validation list from all worksheet names | Excel Worksheet Functions | |||
How do I create a list (Word) of the names on Excel worksheet tabs | Excel Worksheet Functions | |||
Create a list in one worksheet of the other worksheets' names | Excel Worksheet Functions | |||
How do I create a validation list on a separate worksheet? | Excel Worksheet Functions |