+ Reply to Thread
Results 1 to 3 of 3

Create URL from different variables

  1. #1
    Registered User
    Join Date
    11-11-2011
    Location
    Essex
    MS-Off Ver
    Excel 2007
    Posts
    6

    Create URL from different variables

    Hello
    If anyone could help me with this I would be eternally in their debt. My code is very basic

    Please Login or Register  to view this content.
    The URL in question here is
    http://www.thedogs.co.uk/resultsMeet...&track=Swindon

    This is made up of 4 parts
    1. http://www.thedogs.co.uk/resultsMeeting.aspx?racedate= (constant)
    2. A date in the format dd/mm/yyyy (in this case 11/11/2011) (variable)
    3. %2000:00:00&track= (constant)
    4. The name of a race track (in this case Swindon) (variable)

    What I would like to happen is that when I run the macro an input box appears asking for the date and the race track name. It then takes these 2 variables and builds the complete URL as per the format above and then loads the data from the page onto the new sheet.

    Any ideas?

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Create URL from different variables

    Please see the attachment.
    Attached Files Attached Files
    Martin

  3. #3
    Registered User
    Join Date
    11-11-2011
    Location
    Essex
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Create URL from different variables

    Fantastic, thank you

+ 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