+ Reply to Thread
Results 1 to 6 of 6

copy sheet based on table, rename, and hyperlink table to new sheet

  1. #1
    Registered User
    Join Date
    07-28-2014
    Location
    San Francisco
    MS-Off Ver
    2010
    Posts
    4

    copy sheet based on table, rename, and hyperlink table to new sheet

    Hi ALl,

    Had to make a new account but I am glad to be back on the forum \\

    I've been working on a macro that makes copies of a template sheet based on a table in my Opps sheet. If column B isn't empty, make a copy of the template sheet, rename it to Opps column A, and then hyperlink column A's current A.row to the newly copied and renamed sheet.

    I'm not sure what is wrong exactly, it keeps making duplicate Template(x) and stops renaming them, and the hyperlinks are not working. -This is my first go at VBA hyperlinks to internal workbook sheets so any help there would of course be greatly appreciated as well

    Happy Funday Monday!
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: copy sheet based on table, rename, and hyperlink table to new sheet

    Can you post the sample workbook that goes along with this?

    Also if you make the sheet very hidden a hyperlink will no longer work. You will need code that unhides it IF a hyperlink is clicked or something.
    Last edited by mikeTRON; 07-28-2014 at 06:43 PM.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    07-28-2014
    Location
    San Francisco
    MS-Off Ver
    2010
    Posts
    4

    Re: copy sheet based on table, rename, and hyperlink table to new sheet

    Hey Mike!

    Can keeping the sheets "normal" hidden still work with the hyperlinks? I do not want to hide them in a way where VBA is needed to unhide them. The goal is to not clutter the sheets tabs

    Attached the template workbook I am using to build the macro off of. Currently still having trouble with hyperlinks.

    My goal is to have the Hyperlinks allow you to click on the Company name in Sheets("Opps") in COlumn A, and bring you to their respective Sheet, Sheets("CompanyA_Prcs") etc.

    I am also having trouble getting the macro to avoid copying the header row, row 1, it keeps making sheets for Product1_Prcs, Product2_Prcs etc. This should be an easy fix with the ranges I have set but so far it's escaped me.

    Thank you for the assistance, I greatly appreciate the support as I get back into VBA
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: copy sheet based on table, rename, and hyperlink table to new sheet

    Instead of hyperlinking to all of the tabs, why not just make ONE simple macro to Hide/Unhide all the data tabs?

  5. #5
    Registered User
    Join Date
    07-28-2014
    Location
    San Francisco
    MS-Off Ver
    2010
    Posts
    4

    Re: copy sheet based on table, rename, and hyperlink table to new sheet

    Originally I was planning on doing something like that but when the sheet count gets to be 50+ just from this macro, the hyperlinks would add a level of convenience that I want to continue pursuing

    Is hyperlinking like this difficult in general? I have not been able to get my hyperlinks to actually redirect tot he correct sheets thus far.

  6. #6
    Registered User
    Join Date
    07-28-2014
    Location
    San Francisco
    MS-Off Ver
    2010
    Posts
    4

    Re: copy sheet based on table, rename, and hyperlink table to new sheet

    Figured it out! Had a problem with the variables I was suing to make the hyperlink, all done now :D
    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. [SOLVED] Can I copy data into a table based on Sheet name?
    By ekcut in forum Excel General
    Replies: 4
    Last Post: 07-15-2014, 11:16 PM
  2. Replies: 0
    Last Post: 05-08-2014, 11:59 AM
  3. Replies: 1
    Last Post: 01-17-2014, 04:00 PM
  4. Create A Copy To A New Sheet & Rename Sheet Based on Cell Value
    By delicard in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 07-25-2013, 08:56 PM
  5. [SOLVED] Copy a sheet (from template) to a new sheet, and rename (based on cell value)
    By Siglen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-30-2012, 10:19 AM

Tags for this Thread

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