+ Reply to Thread
Results 1 to 5 of 5

help needed in VB

  1. #1
    Registered User
    Join Date
    12-08-2009
    Location
    Montréal
    MS-Off Ver
    Excel 2003
    Posts
    2

    help needed in VB

    Hi,

    I'd like to extract multiple page from a web site. I'd like to use a for loop but I'm not sure about how doing it. The problem is that the variable to increment is in the url. I want to generate a for loop able to change the last caracter (pg=2). I tried to simply replace the number by the variable but this generate error in the code.

    Here is the code generated by excel.

    Please Login or Register  to view this content.
    Can someone help me with that?

    Thank you
    Last edited by Paul; 12-08-2009 at 10:56 PM. Reason: Added code tags for user.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: help needed in VB

    Welcome to the forum. jp.

    Please take a few minutes to read the forum rules, amend your thread title accordingly, and add code tags.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    12-08-2009
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: help needed in VB

    It's going to be something like this:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-08-2009
    Location
    Montréal
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: help needed in VB

    It worked perfectly.

    Thank you.

    Sorry, I will read the forum rules

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: help needed in VB

    Quote Originally Posted by jp_1726qc View Post
    It worked perfectly.

    Thank you.

    Sorry, I will read the forum rules
    Read the forum Rules & use the correct thread Title formats. Future posts will be closed.

    jp_1726qc, please do not answer questions when a senior member has pointed out a Rule infringement
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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