+ Reply to Thread
Results 1 to 5 of 5

Can I replace different urls in selected column with "Click Here" with a Macro?

  1. #1
    Registered User
    Join Date
    01-09-2011
    Location
    harlingen, texas
    MS-Off Ver
    Excel 2003
    Posts
    3

    Can I replace different urls in selected column with "Click Here" with a Macro?

    How do I create this Excel macro? Change an entire column of different clickable URLS to "Click Here"? For example: I have an entire clickable column of different URLs. I can change each of them individually to "Click Here" but that would take too long (over 6,000); and I can even record a macro to do that but all it does is record the same URL to all the fields in the column. What I want is to change all the different URLS to the display text "Click Here" for one selected column TIA.

    I hope it is possible
    Attached Files Attached Files
    Last edited by nono77; 01-09-2011 at 09:48 AM.

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

    Re: Can I replace different urls in selected column with "Click Here" with a Macro?

    A sample file might help but perhaps along the lines of:

    Please Login or Register  to view this content.
    in the above Hyperlinks are assumed to be listed in Column A and are not being generated via HYPERLINK function.

  3. #3
    Registered User
    Join Date
    01-09-2011
    Location
    harlingen, texas
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Can I replace different urls in selected column with "Click Here" with a Macro?

    Hello DonkeyOte,
    Thanks for the reply. I have included a small sample (fishing rods) as an attachment. What I want is to change all the urls in the column under "website" to "Click Here". The attachment is a smaller version with just four websites but I would like to do it for a larger amount of urls in the column.

    Thanks so much for your help I have searched everywhere online and noone seems to know. You're my last hope.

    Attached Files Attached Files
    Last edited by DonkeyOte; 01-09-2011 at 09:05 AM. Reason: removed unnecessary quote

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

    Re: Can I replace different urls in selected column with "Click Here" with a Macro?

    The code provided should do what you requested you just need to change Columns(1) to Columns("C") (or 3 but in retrospect using a letter is more transparent)

    Alternatively, if you prefer to avoid VBA, you could use formulae in an adjacent column and hide Column C, eg:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-09-2011
    Location
    harlingen, texas
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Can I replace different urls in selected column with "Click Here" with a Macro?

    Thank You DonkeyOte!! It worked!!! You are awesome. I have been trying for 2 weeks to figure this out on my own and you did it instantly. You are a genius!

    Thanks once again I really do appreciate.

    Quote Originally Posted by DonkeyOte View Post
    The code provided should do what you requested you just need to change Columns(1) to Columns("C") (or 3 but in retrospect using a letter is more transparent)

    Alternatively, if you prefer to avoid VBA, you could use formulae in an adjacent column and hide Column C, eg:

    Please Login or Register  to view this content.

+ 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