Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a program that renames the names in Column A and its associated
worksheet. All the names in Column A are hyperlinked to its associated worksheet. The names in Column A and the worksheet name are the same. When I make the name changes, the hyperlink is broken. I just need to set the hyperlink in the cell that was changed in Column A to it's associated worksheet again. Here is the code I use to make the changes. Thanks! RowNum = Application.InputBox(prompt:="What is the Row Number of the Location You Want to Change?", Type:=2) FranNum = Application.InputBox(prompt:="What is the Franchise Number You Want to Use?", Type:=2) LabelName = Application.InputBox(prompt:="What is the Franchise Name You Want To Use?", Type:=2) If RowNum = "0" Then 'do nothing Else Cells((RowNum), 1).Select OldLabelName = Cells((RowNum), 1).Value Cells((RowNum), 2).Select ActiveCell.FormulaR1C1 = (FranNum) Cells((RowNum), 1).Select ActiveCell.FormulaR1C1 = (LabelName) Cells((RowNum), 1).Select Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True Sheets(OldLabelName).Select Sheets(OldLabelName).Name = (LabelName) NEED CODE HERE TO RESET THE HYPERLINK TO THE SHEET ONLY - NOT TO A CELL ON THE SHEET. David |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Chart worksheet names keep resetting | Charts and Charting in Excel | |||
Hyperlink - particular worksheet | Excel Discussion (Misc queries) | |||
Troubleshoot resetting hyperlink base to a network drive | Excel Worksheet Functions | |||
Resetting the end of a worksheet | New Users to Excel | |||
resetting worksheet properties | Excel Programming |