+ Reply to Thread
Results 1 to 2 of 2

Need simple VBA code to open Internet Explorer with URL based on cell reference

  1. #1
    Registered User
    Join Date
    10-02-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    1

    Need simple VBA code to open Internet Explorer with URL based on cell reference

    I know this is pretty basic, but I have a list that contains thousands of call records and I need a macro that will open a selected URL with Internet Explorer to link directly call audio itself.

    The hyperlink is the result of concatenating a static hyperlink with a number that is unique to each call. For example:
    My base hyperlink is: http://www.disboards.com/showthread.php?t=3120360&page=
    The Call ID is: 2
    The resulting hyperlink is: http://www.disboards.com/showthread.php?t=3120360&page=2

    I have attempted =HYPERLINK("http://www.disboards.com/showthread.php?t=3120360&page="&[Cell Reference],"Call Audio") but the web application that plays calls doesn't work with that method. However, copying and pasting or opening IE directly with that link will work perfectly.

    Please see the attached file and let me know how to accomplish this.
    example.xlsb

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Need simple VBA code to open Internet Explorer with URL based on cell reference

    Hello slrdude,

    Welcome to the Forum!

    I have modified your workbook to open the page simply by double clicking on the page number in column "B". There are two macro to do this.

    Worksheet BeforeDoubleClick Event Macro Code
    Please Login or Register  to view this content.
    Module1 - Macro to Open the Web Page using a Number
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ 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. VBA to open internet explorer and in a new tab
    By puuts in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-31-2014, 05:46 AM
  2. How do I open with Chrome and not Internet Explorer?
    By walterscj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2013, 11:13 AM
  3. VBA to control Internet Explorer to open files
    By rugbykorn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2013, 04:15 PM
  4. macro to auto open internet explorer
    By mbcebrian in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-29-2011, 12:49 AM
  5. internet explorer not able to open site
    By Shelly in forum Excel General
    Replies: 1
    Last Post: 03-30-2006, 08:44 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