+ Reply to Thread
Results 1 to 3 of 3

Extracting a row number from where a hyperlink was clicked

  1. #1
    Registered User
    Join Date
    03-05-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Extracting a row number from where a hyperlink was clicked

    Hi guys

    A little bit of help with this would be great, I'm tearing my hair out...

    I've currently got a list of value in column B of a sheet... lets call it "Sheet 1"

    I want to create a set of hyperlinks in column A of Sheet 1, that then changes a particular value in Sheet 2 to the value of the cell in column B of the same row as the hyperlink clicked in column A.

    This would be easy if there was a small number of values in column B, as I could use a button for each one... However I have 1300 values so can hardly do a button for each!!

    So far I'm thinking I need to have create an autofill of the hyperlink to that same address in sheet 2 for each cell in column A of sheet 1, and then using a macro with the Worksheet_FollowHyperlink(ByVal Target As Hyperlink) routine to extract the row which was clicked, the value in column B of that row, and then to use this as the new value for my target cell.

    How would I go about extracting the row from which the hyperlink was clicked in?

    Thanks in advance for any help!!

  2. #2
    Registered User
    Join Date
    03-05-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Extracting a row number from where a hyperlink was clicked

    nobody?

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Extracting a row number from where a hyperlink was clicked

    I'm not sure I really follow the need for the hyperlink... couldn't you just use say a DoubleClick event on Sheet1 to update Sheet2 ?

    Please Login or Register  to view this content.
    So if user double clicks on any cell in range B1:B1300 in Sheet1 that same cell is updated on Sheet2 with the Sheet1 value at run-time.

+ 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