ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Drop Down Lists (https://www.excelbanter.com/excel-worksheet-functions/188510-drop-down-lists.html)

DJB

Drop Down Lists
 
Is it possible to create a drop down list that shows the sheets in a workbook?

Stefi

Drop Down Lists
 
First create a list in a helper column (e.g. N) with this macro, then use the
N1:N? range as source of validation list!

Sub shlist()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
Range("N" & ws.Index).Value = ws.Name 'change N as you like
Next ws
End Sub

Regards,
Stefi

€žDJB€ť ezt Ă*rta:

Is it possible to create a drop down list that shows the sheets in a workbook?


Reitanos

Drop Down Lists
 
Or, if you're lazy like me you can right-click on one of the "VCR"
buttons in the bottom left corner (you know, the four browsing buttons
used to navigate the sheets) if your list isn't too long.

On May 22, 9:56 am, Stefi wrote:
First create a list in a helper column (e.g. N) with this macro, then use the
N1:N? range as source of validation list!

Sub shlist()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
Range("N" & ws.Index).Value = ws.Name 'change N as you like
Next ws
End Sub

Regards,
Stefi

„DJB” ezt írta:

Is it possible to create a drop down list that shows the sheets in a workbook?




All times are GMT +1. The time now is 03:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com