+ Reply to Thread
Results 1 to 4 of 4

Creating a macro to open multiple formulated hyperlinks

  1. #1
    Registered User
    Join Date
    01-12-2014
    Location
    Illinois
    MS-Off Ver
    Excel 2010
    Posts
    3

    Creating a macro to open multiple formulated hyperlinks

    Good evening all,

    I'm a Excel beginner and I'm trying to create a spreadsheet to help my office out. We have a searchable intranet web page. With the spreadsheet, you can enter up to 50 phone numbers, which will remove any special characters and breaking the number down to the area code, the next three digits and the last four digits. After breaking the number down, I created a hyperlink that takes the intranet search url and adding the broken down number. The cell formula looks like, =HYPERLINK("http://xxxxxxxxxxxxxxxxx" & B1 & "xxxxxx" & C1 & "xxxxxx" & D1, "&B1&""&C1&""&D1&"" which when clicked will direct me to "http://xxxxxxxxxxxxxxxxx888xxxxxx555xxxxxx1234". I want to create a macro that will, after populating Columnn A with 1-50 phone numbers, open with 1-50 different tabs with the different search results. I've tried many different options, and I think through trial and error, hyperlinks().follow will not work because the hyperlink is formulated. Any help would be much appreciated. I can add more details if needed. Thanks!

  2. #2
    Registered User
    Join Date
    01-12-2014
    Location
    Illinois
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Creating a macro to open multiple formulated hyperlinks

    Any help, even just throwing thoughts out would help, Thanks!

  3. #3
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Creating a macro to open multiple formulated hyperlinks

    There is more than one way to skin a hyperlink.

    Say cell A1 contains a "formulated" hyperlink like:

    =HYPERLINK("http://www.cnn.com","News")

    and we wish to activate it using VBA (like a human would do by clicking on the cell). This small macro will do just that:


    Please Login or Register  to view this content.
    Gary's Student

  4. #4
    Registered User
    Join Date
    01-12-2014
    Location
    Illinois
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Creating a macro to open multiple formulated hyperlinks

    Thanks for helping! I tried that macro and it worked...sort of. When clicking on the macro, a new tab opened with "http://xxxxxxxxxxxxxxxxx". It is missing the rest of the hyperlink (broken down phone number and the search jargon).

+ 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] Creating multiple rows hyperlinks from text in different cells in a Macro
    By p1awn in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-19-2013, 01:16 PM
  2. Creating Multiple Hyperlinks
    By @Xel in forum Excel General
    Replies: 1
    Last Post: 06-04-2013, 01:42 AM
  3. formulated hyperlinks lost when PDF'd
    By \\shorty// in forum Excel General
    Replies: 0
    Last Post: 06-19-2009, 12:16 PM
  4. Creating a formulated query
    By dandavis1 in forum Access Programming / VBA / Macros
    Replies: 3
    Last Post: 05-27-2009, 12:47 PM
  5. Creating Multiple Hyperlinks
    By julvaz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-28-2007, 02:53 PM

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