+ Reply to Thread
Results 1 to 4 of 4

Using a Range of cells in a FollowHyperlink function

  1. #1
    Registered User
    Join Date
    05-16-2014
    Location
    Massachusetts, USA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Post Using a Range of cells in a FollowHyperlink function

    I am trying to write some code that looks at a column of data, a defined range of say A1:A100. Each of the cells in the range have a string value in each of them (project names). Each of these are hyperlinked to themselves (I use some other code for this which does it automatically). My wish is for this new code to detect which hyperlinked cell in the range has been clicked and then go to a different sheet and copy the value of that cell to a cell on the new sheet.

    I have been able to do this already, but only when specifying a particular cell in the range, and can't figure out how to make it look at a true range of cells.

    Here is the code that works now for a single cell (A1)

    Please Login or Register  to view this content.
    Anyone have any ideas how I can chnage this to cover a range of cells i.e. A1:A100?

    Thanks

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

    Re: Using a Range of cells in a FollowHyperlink function

    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.

  3. #3
    Registered User
    Join Date
    05-16-2014
    Location
    Massachusetts, USA
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Using a Range of cells in a FollowHyperlink function

    Wow, so quick and so simple. I can't tell you grateful I am. That was the last piece of my puzzle.

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

    Re: Using a Range of cells in a FollowHyperlink function

    You're welcome.

+ 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] I need some Help with FollowHyperlink please (Error 432)
    By Trefor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-07-2006, 07:25 AM
  2. FollowHyperlink failing
    By Andrew Fiddian-Green in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-09-2006, 08:10 AM
  3. FollowHyperlink automatically
    By Pieter-Jan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-13-2005, 01:50 PM
  4. [SOLVED] FollowHyperlink Method
    By Keith in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-06-2005, 11:05 AM
  5. FollowHyperlink Method
    By ngedwin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-15-2005, 01:45 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