+ Reply to Thread
Results 1 to 5 of 5

Add new job and hyperlink to corresponding sheet

  1. #1
    Registered User
    Join Date
    06-22-2015
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    8

    Add new job and hyperlink to corresponding sheet

    I have a userform that creates and fills in a new sheet from a template and fills in a master sheet. I am having issues with the master sheet overwriting the information already there. I would also like the Job Numbers on the master sheet to automatically add a hyperlink to the corresponding sheet.

    Here is the code I seem to be having trouble with:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Add new job and hyperlink to corresponding sheet

    What's the problem with the code?

    The only thing I can see straight off is this.
    Please Login or Register  to view this content.
    Worksheet should probably be Worksheets, and even if that change was made there's no Show method for worksheets.

    If you want to activate Master after the new job sheet and hyperlink have been created try this.
    Please Login or Register  to view this content.
    PS Wasn't sure what text you wanted to display for the hyperlink so I just used the new sheet name, ie the job no.
    If posting code please use code tags, see here.

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Add new job and hyperlink to corresponding sheet

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565

    Re: Add new job and hyperlink to corresponding sheet

    Hi electricsec,

    Welcome to the forum!!

    I'd also say you need to change these lines of code...

    Please Login or Register  to view this content.
    ...to this:

    Please Login or Register  to view this content.
    That said, I would strongly recommend not having separate tabs for each job but just one template with a drop-down for the jobs that populates each field. It won't take long for the work book to become unmanageable having a separate tab for each job as you're intending. This is a common mistake many people make which we try to discourage users from making.

    Regards,

    Robert
    Last edited by Trebor76; 05-30-2016 at 08:45 PM.
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  5. #5
    Registered User
    Join Date
    06-22-2015
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    8

    Re: Add new job and hyperlink to corresponding sheet

    Thanks for all of your help. AlphaFrog's code worked great for me.
    I love the idea of having a drop-down for the jobs, thanks for the great suggestion.

+ 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. Replies: 0
    Last Post: 10-27-2015, 08:59 AM
  2. Replies: 0
    Last Post: 10-27-2015, 08:57 AM
  3. [SOLVED] Create new sheet from template, auto fill from index sheet and hyperlink
    By RichTea88 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-06-2013, 04:57 AM
  4. Replies: 1
    Last Post: 02-23-2013, 05:18 AM
  5. Replies: 48
    Last Post: 09-27-2012, 12:27 PM
  6. Replies: 2
    Last Post: 01-13-2012, 04:59 PM
  7. Paste hyperlink to a hyperlink in another sheet
    By skiman123321 in forum Excel General
    Replies: 1
    Last Post: 12-14-2006, 07:25 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