+ Reply to Thread
Results 1 to 8 of 8

Website VBA Macro Question

  1. #1
    Forum Contributor
    Join Date
    09-17-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    115

    Website VBA Macro Question

    I am new to vba programming for excel and need some quick help to get a macro that logs me into the following website
    https://google.com
    After that I want the macro to click on a link.
    What would the macro be forthat?
    Thanks in advance
    Last edited by excelcandy; 09-24-2013 at 02:35 PM.

  2. #2
    Forum Contributor
    Join Date
    04-25-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2010
    Posts
    150

    Re: Website VBA Macro Question

    Hi. I can't really take credit for this code, I had a similar task once so I ended up with this after many google searches and combining various other codes. But anyway, here you go. Just fill in your username, password, and the link address and you should be good to go.

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    09-17-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    115

    Re: Website VBA Macro Question

    Hey, that's almost perfect, but the password field isn't getting filled in and it still tries to log in. Stops.

  4. #4
    Forum Contributor
    Join Date
    04-25-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2010
    Posts
    150

    Re: Website VBA Macro Question

    hmm, not sure why. When I run it it fills in the password field with PASSWORD. Try putting this:

    Please Login or Register  to view this content.
    between "End if" after username and "If" before password and see if that helps.

  5. #5
    Forum Contributor
    Join Date
    09-17-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    115

    Re: Website VBA Macro Question

    Hey, this worked, but it should open a new window after the login. atm it ends the macro.
    Last edited by excelcandy; 09-18-2013 at 12:01 PM.

  6. #6
    Forum Contributor
    Join Date
    09-17-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    115

    Re: Website VBA Macro Question

    Hey,

    Is there a way to keep the macro on track when changing windows?
    Last edited by excelcandy; 09-18-2013 at 01:53 PM.

  7. #7
    Forum Contributor
    Join Date
    04-25-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2010
    Posts
    150

    Re: Website VBA Macro Question

    not sure what you mean exactly. did you manage to get the macro to follow your link after logging in? If not, find this line in the code:

    Please Login or Register  to view this content.
    and remove the ' before IE.

  8. #8
    Forum Contributor
    Join Date
    09-17-2013
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    115

    Re: Website VBA Macro Question

    This worked fine. thank you !!!!!

+ 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. A Question - Intergrate Excel VBA/Macro to a website for multiple users?
    By johnny_p in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2013, 05:42 AM
  2. Opening website, getting data, closing website
    By beta_leonis in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2012, 03:50 AM
  3. File to website question
    By jlabruno in forum Excel General
    Replies: 4
    Last Post: 02-03-2012, 04:45 AM
  4. Follow up question on website
    By mikejones in forum Excel General
    Replies: 1
    Last Post: 02-23-2011, 11:16 AM
  5. I want few website name for macro
    By irsath in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-02-2006, 08:10 AM

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