Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| excel [2020/02/03 08:39] – [Macro to create link for each worksheet] gerardorourke | excel [2020/02/07 14:09] (current) – gerardorourke | ||
|---|---|---|---|
| Line 119: | Line 119: | ||
| ==== Macro to create link for each worksheet ==== | ==== Macro to create link for each worksheet ==== | ||
| - | | + | === Get a list of all worksheets in your workbook === |
| - | < | + | |
| + | Reference: https:// | ||
| + | | ||
| + | * Enter **ListSheets** as the **Name** and the below formula into the **Refers to** field. | ||
| + | * < | ||
| + | * Have a worksheet with A column with number of sheets on each row. and Use a formula to create hyperlink to all worksheets | ||
| + | * < | ||
| + | * then use the below to get the URL link for the worksheet | ||
| + | * < | ||
| Reference: https:// | Reference: https:// | ||
| - | + | Dependant Dropdowns | |
| - | Reference: | + | *https:// |
| - | <code vb> | + | |
| - | Sub CreateLinksToAllSheets() | + | |
| - | Dim sh As Worksheet | + | |
| - | Dim cell As Range | + | |
| - | For Each sh In ActiveWorkbook.Worksheets | + | |
| - | If ActiveSheet.Name <> sh.Name Then | + | |
| - | ActiveCell.Hyperlinks.Add Anchor: | + | |
| - | "'" | + | |
| - | ActiveCell.Offset(1, | + | |
| - | End If | + | |
| - | Next sh | + | |
| - | End Sub | + | |
| - | </ | + | |