+ Reply to Thread
Results 1 to 5 of 5

Macros to Create New Sheet, Rename, and Create HyperLink to New Worksheet

  1. #1
    Registered User
    Join Date
    06-16-2015
    Location
    Chicago, IL
    MS-Off Ver
    2010
    Posts
    14

    Macros to Create New Sheet, Rename, and Create HyperLink to New Worksheet

    Hi,

    I would like to request assistance for the following:

    I want to create a new worksheet based off a template worksheet in my workbook using a macros and button.
    Ideally, I would have a cell selected with the name of the new worksheet - Example: Labor 1 in Cell C5.
    The button would create a new Labor worksheet and generate the hyperlink to link to the new worksheet on the Index Page and also create a new worksheet based off that name.

    In summary:

    1. I need to copy "Labor" worksheet and place after the Master Labor Template.
    2. Rename the copied ws based on a cell value (C5) from the Index Worksheet (Where the macro will be placed.) or from selected cell.
    3. Create hyperlink from the cell value or selection that will link to the newly created worksheet. from the "Index" worksheet.

    I keep getting an error message, and the code I am using right now is:

    Please Login or Register  to view this content.
    Test.xlsm

    Thank you!
    Last edited by jacksum; 06-18-2015 at 06:19 PM.

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Macros to Create New Sheet, Rename, and Create HyperLink to New Worksheet

    I keep getting an error message
    These kinds of statements are never helpful. If you get an error then tell us where the error is, what line of code, the error number and message.

    The only thing I saw in your code was this.
    Please Login or Register  to view this content.
    I changed it to this and your code seemed to do what you wanted it to do.
    Please Login or Register  to view this content.
    Also in the future and even now please put code tags around your code so it looks like what I posted above.
    Go into your original post, edit, select all your code, click on the # icon in the menu and save your changes.

    Thanks.
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  3. #3
    Registered User
    Join Date
    06-16-2015
    Location
    Chicago, IL
    MS-Off Ver
    2010
    Posts
    14

    Re: Macros to Create New Sheet, Rename, and Create HyperLink to New Worksheet

    Thanks, skywriter! It works!

  4. #4
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Macros to Create New Sheet, Rename, and Create HyperLink to New Worksheet

    Quote Originally Posted by jacksum View Post
    Thanks, skywriter! It works!
    Thanks for the feedback, using the code tags and for the rep. points.

    I have one other favor to ask.

    Please click the Thread Tools drop down box above your first post and choose solved.

  5. #5
    Registered User
    Join Date
    06-16-2015
    Location
    Chicago, IL
    MS-Off Ver
    2010
    Posts
    14

    Re: Macros to Create New Sheet, Rename, and Create HyperLink to New Worksheet

    For all those who are interested,

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Create and rename sheet in vba then link to it
    By Jón Ingi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2014, 05:20 PM
  2. Create New Sheet and Rename
    By monkeynoon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2013, 04:57 PM
  3. Macro to create sheet, rename sheet, and hyperlink to it
    By prescottfarm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-31-2013, 04:46 PM
  4. Create copy of sheet & rename
    By Vetequk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2010, 08:40 AM
  5. disable macros, create file, rename etc
    By Jlong1980 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2006, 07:08 PM

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