+ Reply to Thread
Results 1 to 3 of 3

VBA macro to copy hyperlink value to another worksheet

  1. #1
    Registered User
    Join Date
    02-07-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    VBA macro to copy hyperlink value to another worksheet

    Hope this makes some sense.

    I have a workbook where sheet 1 is a menu page where I have a list of items in cells G4:G10.
    I have created hyperlinks to these cells (G4:G10) in A4:A10.

    What I’m trying to do is when one of the hyperlinks is selected, the corresponding value in (G4:G10) is copied and pasted into cell B2 (always this cell) in sheet 2.
    This value in sheet 2 B2 is then used for a vlookup in sheet 2.
    Also sheet 2 B2 now becomes the active sheet.

    regards
    JF
    Last edited by Jackcf; 02-08-2012 at 08:32 PM.

  2. #2
    Valued Forum Contributor smuzoen's Avatar
    Join Date
    10-28-2011
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003/2007/2010
    Posts
    610

    Re: VBA macro to copy hyperlink value to another worksheet

    Try this
    Please Login or Register  to view this content.
    Place this into Sheet1 (I assume this is the sheet where the hyperlinks are)
    If in future please upload a sample workbook with no sensitive data(dummy data) showing how the workbook is constructed and showing the desired outcome as this makes supplying an answer much easier.
    or
    Please Login or Register  to view this content.
    Last edited by smuzoen; 02-07-2012 at 09:31 PM.
    Hope this helps.
    Anthony
    Pack my box with five dozen liquor jugs
    PS: Remember to mark your questions as Solved once you are satisfied. Please rate the answer(s) by selecting the Star in the lower left next to the Triangle. It is appreciated?

  3. #3
    Registered User
    Join Date
    02-07-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: VBA macro to copy hyperlink value to another worksheet

    Thanks heaps Anthony
    worked fine.
    Regards
    JF

+ 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