+ Reply to Thread
Results 1 to 6 of 6

How can I pull the data next to a name from a website in VBA?

  1. #1
    Forum Contributor
    Join Date
    04-01-2010
    Location
    USA
    MS-Off Ver
    Office 2021
    Posts
    185

    How can I pull the data next to a name from a website in VBA?

    I have the program so that it logs on to a website and then loads a page that displays a card balance. When I look at the source code on the page it says "<TD><SPAN id=ctl00_ContentPlaceHolder1_ctl00_rptrHistory_ctl01_balance>$25.00</SPAN></TD>

    How can I tell VBA to find whatever dollar amount is in the area where $25 is now and import it to a cell in excel? I don't know how to refer to that space in the html code.

  2. #2
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: How can I pull the data next to a name from a website in VBA?

    Hi,

    Have you picked which way to go : the web query route or the HTML object route ...
    Posting your actual code would certainly help ...

  3. #3
    Forum Contributor
    Join Date
    04-01-2010
    Location
    USA
    MS-Off Ver
    Office 2021
    Posts
    185

    Re: How can I pull the data next to a name from a website in VBA?

    Quote Originally Posted by JeanRage View Post
    Hi,

    Have you picked which way to go : the web query route or the HTML object route ...
    Posting your actual code would certainly help ...
    I'm not sure what you mean. This is the relevant piece of the code. H
    D
    Please Login or Register  to view this content.
    Last edited by royUK; 04-03-2010 at 02:45 AM.

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

    Re: How can I pull the data next to a name from a website in VBA?

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Hope that helps.

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

    Free DataBaseForm example

  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: How can I pull the data next to a name from a website in VBA?

    https indicates a secure site, I doubt if you will be able to access any data without the relevant log in.

    Why would you want to do this?

  6. #6
    Forum Contributor
    Join Date
    04-01-2010
    Location
    USA
    MS-Off Ver
    Office 2021
    Posts
    185

    Re: How can I pull the data next to a name from a website in VBA?

    Quote Originally Posted by royUK View Post
    https indicates a secure site, I doubt if you will be able to access any data without the relevant log in.

    Why would you want to do this?
    I am trying to automate a tedious process I do monthly. I have the logon but didn't want to post it online. I'm sorry for not making the code clearer in the post. Once I'm logged on I can see the data, but just don't know how to learn how to download it back into excel

+ 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