+ Reply to Thread
Results 1 to 7 of 7

saved sheet to create hyperlink

  1. #1
    Registered User
    Join Date
    08-05-2009
    Location
    Ballarat Australia
    MS-Off Ver
    Excel 2007
    Posts
    65

    Smile saved sheet to create hyperlink

    Hi all I have a workbook for Purchase orders.

    how it works at the moment is when I fill in the Purchase prder sheet then save it, I have a macro that

    Copies Sheet "Purchase Order" creates a new sheet to paste it to then also copies some details to A Sheet called "Register.

    I would like to be able to (if possible)

    1/ automaticly create a hyperlink between the P/o Nomber stored on the register as it is storing the new sheet &

    2/ automaticly change the sheet tab to reflectthe P/order number in Cell G8

    I have very little knowlage of VBA & am learning how to record macros so please be gentle.

    here is the macro I recorded

    HTML Code: 
    Last edited by nighttrainrex; 11-04-2009 at 04:57 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: saved sheet to create hyperlink

    If you posted a sample worksheet, I could test this, too, but I've marked in red the two lines of code that should do what you asked. I also shortened up the code to speed it up and remove all the unnecessary "selecting".
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-05-2009
    Location
    Ballarat Australia
    MS-Off Ver
    Excel 2007
    Posts
    65

    Re: saved sheet to create hyperlink

    Hi Jb thanks for that it works fine with the exception of the hyperlink, the link appears to be there but but if I click on it a message box saying "cannot open te speified file pops up

    rex
    Last edited by nighttrainrex; 11-03-2009 at 10:41 PM.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: saved sheet to create hyperlink

    Time to post a test sheet then so I can see the diff.

    Click GO ADVANCED and use the paperclip icon to post up your workbook.

  5. #5
    Registered User
    Join Date
    08-05-2009
    Location
    Ballarat Australia
    MS-Off Ver
    Excel 2007
    Posts
    65

    Re: saved sheet to create hyperlink

    Ok here it is (I hope)
    Attached Files Attached Files

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: saved sheet to create hyperlink

    Edit that one section and make the hyperlink code like so:
    Please Login or Register  to view this content.
    You can change the A1 to the cell you actually want to jump to when the hyperlink is clicked.

  7. #7
    Registered User
    Join Date
    08-05-2009
    Location
    Ballarat Australia
    MS-Off Ver
    Excel 2007
    Posts
    65

    Re: saved sheet to create hyperlink

    Thamks JB that works a treat.

    I will go now & click on the scales

    cheers rex

+ Reply to Thread

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