Computing.Net > Forums > Office Software > VB to rename&hyprlnk to new sheets

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VB to rename&hyprlnk to new sheets

Reply to Message Icon

Name: askedit
Date: February 22, 2007 at 19:44:31 Pacific
OS: xp
CPU/Ram: p4; 1g
Product: hp
Comment:

In excel I have a macro that finds the last cell in a column, selects the next cell down and inserts a value of N+1 (where N is the previous cell’s value). It then inserts a worksheet and renames it the value of the new cell (N+1). How do I add to this macro an instruction to also create a hyperlink from the cell (N+1) to the corresponding worksheet with the same name? Basically, once I have many worksheets created, I want to be able to use the original column list as an index from where I can click and zoom to the corresponding sheet.

Many thanks in advance for any help.




Sponsored Link
Ads by Google

Response Number 1
Name: Grok Lobster
Date: February 26, 2007 at 11:18:12 Pacific
Reply:

ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:= _
Sheets("Sheet" & ActiveCell.Value)

I did not test this, but it should work if the list sheet is active and the cell with N+1 value is selected.




0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: VB to rename&hyprlnk to new sheets

Macro to carry over totals www.computing.net/answers/office/macro-to-carry-over-totals/6823.html

Clicked no to do you want to save t www.computing.net/answers/office/clicked-no-to-do-you-want-to-save-t/2480.html

How to get Excell header to scroll www.computing.net/answers/office/how-to-get-excell-header-to-scroll/1799.html