Results 1 to 29 of 29

please help me to refresh the macro to hyperlink the sheet name

Threaded View

  1. #1
    Forum Contributor
    Join Date
    06-12-2013
    Location
    india
    MS-Off Ver
    Office 365
    Posts
    218

    please help me to refresh the macro to hyperlink the sheet name

    Hi,

    I have the code and it works as below.

    I assigned the code to a button. Once I click on the button, it will copy the sample sheet with the sheet name that I provide, and the same name will be added to the summary page along with formula and format from the sample row. I need your help to create a hyperlink using the macro between the sheet and the sheet name updated on the summary page. Please help me where I need to add the line in the existing code below.

    Also, before creating/copying the first new sheet, I will hide the sample sheet and the sample row in the summary page since no one should see it but I am facing an issue if I hide the sample sheet and the sample row in the summary page before creating/copying a new page and click on the button to create a new page, the new page and the row are hidden by themselves. please help.

    Sub CreateNewSheet()
        Dim str As String
        
        str = InputBox("New Sheet Name", "")
        If Not str = "" Then
            With ThisWorkbook
                .Sheets("Sample").Copy after:=.Sheets(.Sheets.Count)
                .Sheets(.Sheets.Count).Name = str
                With .Sheets("Summary")
                    .Rows(.Cells(.Rows.Count, 1).End(xlUp).Row + 1).FillDown
                    .Cells(.Rows.Count, 1).End(xlUp) = str
                End With
                .Sheets("Summary").Activate
            End With
        Else
            MsgBox "You didn't enter a sheet name.", , ""
        End If
    End Sub
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] macro creates new sheet and names it, need to create hyperlink to new sheet on main sheet
    By cjburns in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-03-2020, 11:26 AM
  2. Refresh each excel sheet 1-by-1 using Macro/VBA
    By ukki in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2020, 07:18 AM
  3. Replies: 0
    Last Post: 01-07-2013, 08:39 PM
  4. [SOLVED] Refresh active sheet before performing Macro
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2012, 01:02 AM
  5. [SOLVED] Macro to refresh a sheet when opening
    By amotto11 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-06-2012, 03:54 PM
  6. hyperlink to refresh with current macro
    By step_one in forum Excel General
    Replies: 1
    Last Post: 08-13-2011, 05:57 PM
  7. macro to refresh a sheet
    By Ramzes in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-19-2011, 03:16 AM

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