+ Reply to Thread
Results 1 to 5 of 5

Can I make a macro that opens a website at specified times during the day?

  1. #1
    Registered User
    Join Date
    09-09-2016
    Location
    Quebec
    MS-Off Ver
    2015
    Posts
    10

    Question Can I make a macro that opens a website at specified times during the day?

    Hey guys!

    Everyday, ~30 times a day, I need to go on a website and enter a specific number in a text box.

    I have to do it on average 30 times a day and only have a window of 10 seconds to do it every time.

    Each morning I have all the information for my ~30 data entry but have to wait to do it manually ~30 times during each 10 seconds windows...


    This is somewhat annoying and stressful.

    Do you think I could program something combining Excel and VBA where I count enter all the times (hours:min:sec), numbers to enter - and then the macro would open the website by itself at the right time and enter the right number?

    The Excel worksheet could look like something like this:

    Address (A): Time (B): Number (C):
    www abccc/111111 com 10:32:23 87.345
    www abccc/222222 com 11:42:20 88.546
    www abccc/333333 com 14:11:05 88.578
    www abccc/444444 com 16:32:29 89.157
    www abccc/555555 com 16:39:55 84.523
    www abccc/666666 com 18:58:26 83.178

    And each morning I could fill all 3 columns and some VBA macro on the background would open the specified website (address) at the right time (B) and enter the corresponding number (C) in the text box.

    I cannot provide the actual website but it's similar to this:
    foodblogsearch (DOT) com
    2 tabs gets you to the text box then you enter a value and press enter.
    Adapting code to my actual website will take like 2 minutes (add a few tabs and change website in code)


    Do you think that could be done?
    If you think there is already a program that could do just that or if you can think or a better way of doing this, please let me know!

    Thanks!

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Can I make a macro that opens a website at specified times during the day?

    There are two ways I can think of doing this. One is to use Get External Data / From Web form the Data Ribbon. This will create a connection. If you click on Data > Connections, select the connection and got to properties on the boxes you can select is refresh every X minutes.

    The other method is to use the Windows Task Scheduler to run a macro in the workbook.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    09-09-2016
    Location
    Quebec
    MS-Off Ver
    2015
    Posts
    10

    Re: Can I make a macro that opens a website at specified times during the day?

    Quote Originally Posted by dflak View Post
    There are two ways I can think of doing this. One is to use Get External Data / From Web form the Data Ribbon. This will create a connection. If you click on Data > Connections, select the connection and got to properties on the boxes you can select is refresh every X minutes.

    The other method is to use the Windows Task Scheduler to run a macro in the workbook.
    Do these methods require that I have a macro constantly running in the background (like an infinite loop) so it's constantly checking if the current time is equal to one of the ~30 specified hour:min:sec?

    Because I believe that would prevent me from using Excel...

    Thanks!

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Can I make a macro that opens a website at specified times during the day?

    The first method would require that you keep the macro running.

    Using the task scheduler will open the excel spreadsheet in the background and run it for as long as it takes to download the data. You could even make as the last part of the macro, something that emails you telling you, "I'm finishing up now!"

  5. #5
    Registered User
    Join Date
    09-09-2016
    Location
    Quebec
    MS-Off Ver
    2015
    Posts
    10

    Re: Can I make a macro that opens a website at specified times during the day?

    The Task Scheduler looks like a good solution.

    I've never used it though... So I'm not to sure how it would work.

    The way I'm seeing it, it would be like a 2 step process :
    enter the 30 hour:min:sec in the task scheduler
    enter the numbers and websites to enter the numbers in the Excel file with the macro?

    Thanks!

+ 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. Replies: 2
    Last Post: 01-19-2016, 10:08 PM
  2. VBA to tries to pull data from a website but the page times out.
    By elPepin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-01-2014, 06:20 AM
  3. Macro to make Excel press F2 and Enter for me a bunch of times
    By nicelyj2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2012, 08:17 AM
  4. How to make a command-button that opens a worksheet?
    By Jon85 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-13-2009, 08:00 PM
  5. Excel 2003 opens multiple times
    By johncassell in forum Excel General
    Replies: 1
    Last Post: 12-23-2008, 09:46 AM
  6. How do i make a macro which opens a box at startup where I can enter a date which...
    By JackSchilder in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2006, 06:40 AM
  7. [SOLVED] Excel opens my file and a book1.xls, make it stop?
    By Bob in forum Excel General
    Replies: 6
    Last Post: 01-06-2005, 09:06 PM

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