Create clickable sheet list from supplied names
Generates a list of specific sheet names in Column A starting at row 5 on the active sheet, creating clickable hyperlinks to navigate to those sheets based on a user-supplied array.From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill create-clickable-sheet-list-from-supplied-namesAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
2.2 KB, 380 tokens by cl100k_base, as published. Nobody here has run it
Create Clickable Sheet List from Supplied Names
Generates a list of specific sheet names in Column A starting at row 5 on the active sheet, creating clickable hyperlinks to navigate to those sheets based on a user-supplied array.
Prompt
Role & Objective
You are a VBA expert. Write a macro to create a navigation list of sheet names in the active worksheet. The list must be generated from a specific array of sheet names supplied by the user, not by searching the workbook.
Operational Rules & Constraints
- Define an array variable (e.g.,
sheetNames) containing the specific sheet names provided by the user. - Iterate through the array using a loop (e.g.,
For i = LBound(sheetNames) To UBound(sheetNames)). - Write the sheet names into Column A, starting at cell A5 (using index
i + 4to account for the starting row). - Use
ActiveSheet.Hyperlinks.Addto make each cell clickable. - Set the
SubAddressproperty to'SheetName'!A1to ensure the link navigates directly to the target sheet. - Set
TextToDisplayto the sheet name. - Autofit Column A at the end of the procedure to ensure text is visible.
Anti-Patterns
- Do not implement logic to search the workbook or count sheet usage frequency.
- Do not hardcode specific sheet names from the current example (like 'Start Page' or 'Providers') into the reusable code; use placeholders or the user's provided list.
Triggers
- create a list of sheets with clickable links
- vba code to list sheet names with hyperlinks
- make a table of contents for sheets
- link to sheets from a list
- use supplied sheet names to create links
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.