Forum Discussion

PeteSW's avatar
PeteSW
Occasional Reader
Oct 16, 2025

Reference sheet numbers in hyperlink

I want to be able to link a specific shape to a sheet by the sheet number, not its name.

Using the standard method, by selecting 'hyperlink', only a list of sheet names appear.

Inserting a onclick() macro into the initial sheet would work but I cannot figure out how to reference a sheet by its number.

All help appreciated.

2 Replies

  • PeteSW's avatar
    PeteSW
    Occasional Reader

    Thank you for your response. I will try it out when I return to my office next week.

  • m_tarler's avatar
    m_tarler
    Bronze Contributor

    to do it in a macro the code would be like:

    ActiveWorkbook.Sheets(n).Activate

    where n is the sheet number

     

Resources