+ Reply to Thread
Results 1 to 4 of 4

Opening website, getting data, closing website

  1. #1
    Registered User
    Join Date
    02-28-2007
    Posts
    2

    Opening website, getting data, closing website

    I have a spreadsheet with a single column -- each cell within this column is the basic URL for a website. I'd like to write a macro that opens up each website in turn, and converts the basic URL to its corresponding extended URL.

    Example: the first value in the column might be:

    http://www.company.com/ABCDE

    If you paste the website directly into your web browser, you're automatically redirected to:

    http://www.company.com/Example-Long-URL.html

    I'd like to write a macro that takes the first URL, goes to the website, and comes back with the second URL, which can then be pasted back into the worksheet, on a row-by-row basis.

    Can such a beast be done?

  2. #2
    Registered User
    Join Date
    02-28-2007
    Posts
    2
    *bump*

    I managed to find the ShellExecute function in the library, and have used that to open up a browser window. How, then, am I able to take the expanded URL back from the window to use it in other parts of my spreadsheet? (Text management stuff, and the like).

  3. #3
    Registered User
    Join Date
    08-26-2012
    Location
    New Zealand
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Opening website, getting data, closing website

    A solution to this would also solve my problem. Returning a extended url into the cell which I can then manipulate further.

  4. #4
    Registered User
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,164

    Re: Opening website, getting data, closing website

    Stildawn,

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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