Results 1 to 9 of 9

VBA to incorporate a hyperlink to another tab

Threaded View

  1. #1
    Registered User
    Join Date
    10-22-2012
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    7

    VBA to incorporate a hyperlink to another tab

    Hello!

    I'm new to VBA and need some help. I have a spreadsheet with many tabs (one for each deal I'm working on) all based off of a Template. I click a button and this macro (below) creates a copy of the template and prompts me to rename it to my new deal name. I'm making a 'home page' to make it easier to navigate and all my deal names will be in column E. What I want is to be able to run this macro, click the deal name I've just typed in column E, create the new template tab for this deal, AND hyperlink to the tab it just made. What I'm missing here is the hyperlink part. Any help would be much appreciated!

    Sub NewSheetFromTemplate()
    Dim sName As String
    
    sName = Application.InputBox("Enter the new sheet name:", Title:="New Sheet Title", Type:=2)
    If sName = "" Then Exit Sub
    
    Sheets("Template").Copy After:=Sheets(Sheets.Count)
    ActiveSheet.Name = sName
    
    End Sub
    Last edited by davesexcel; 02-22-2013 at 08:19 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1