+ Reply to Thread
Results 1 to 6 of 6

How to automate getting information from the web, e.g., temperature, daily ?

  1. #1
    Registered User
    Join Date
    11-08-2011
    Location
    bergen county, NJ
    MS-Off Ver
    Excel 2007
    Posts
    72

    How to automate getting information from the web, e.g., temperature, daily ?

    Hi !
    I have automated a workbook that allows my school to handle attendance via Excel.
    I would love to be able to set up my workbook so that the daily temperature and 1 or 2 other weather pieces of information, could show up
    everyday. I've done a ton of searching, but I can't seem to find what it is I'm looking for... Under the last row of the students I'd like it to show
    the temperature for that morning, and how cloudy it is (i.e., overcast, partly cloudy, clear). I feel like this should be easier than the
    explanations I've found via googling !

    thanks !

    -rob

  2. #2
    Forum Contributor
    Join Date
    08-22-2011
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    516

    Re: How to automate getting information from the web, e.g., temperature, daily ?

    what you should do is record yourself doing a web query, then go to weather.com and type in your zip code into the prompt. Next import the table and just delete all of the stuff you don't need when you put it into excel, then you will be left with temp, wind, etc. if you want or you can just delete everything except the temp. You will then have a working macro to go get the temp of that day. mine looked like this.

    Please Login or Register  to view this content.
    Let me know if this works for you.
    Regards,
    amotto

    If I helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    11-08-2011
    Location
    bergen county, NJ
    MS-Off Ver
    Excel 2007
    Posts
    72

    Re: How to automate getting information from the web, e.g., temperature, daily ?

    thanks for your suggestion, amotto !
    i'm wondering though, can i automate this so that every day at the same time, my workbook is updated with the temp of my town ? this way no one has to worry about doing anything at all to get it


    -rob

  4. #4
    Forum Contributor
    Join Date
    08-22-2011
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    516

    Re: How to automate getting information from the web, e.g., temperature, daily ?

    hmm. I know you can call macros at certain times of the day, although i believe that you would have to have your workbook open at that time of day in order for it to run. I think the code for that would go something like this. If your macro was named, like mine Macro 1...

    Please Login or Register  to view this content.
    This macro only works in the ThisWorkbook vba section and not a module. Also, it will only work after you save the workbook with this macro and then reopen the macro. This is because of the fact that the workbook being opened triggers this macro to run. As it is now, this macro will run at 9:00 PM. The time is always local with this macro.

    I am not sure if you can automate it to open excel and run the macro at a certain time. I will do some digging, though it hardly seems possible since i believe that you need excel open to run a macro to begin with.

    ---------- Post added at 09:04 PM ---------- Previous post was at 08:54 PM ----------

    rob,

    Take a look at this thread, you may be able to take something away from this to help you make the macro self sustaining.

    http://www.excelforum.com/excel-prog...me-of-day.html

    All i did was put this "open excel and run a macro at a certain time of day" into my google browser and a lot of things returned. Hope this helps. Let me know if you do run into anymore problems.

  5. #5
    Registered User
    Join Date
    11-08-2011
    Location
    bergen county, NJ
    MS-Off Ver
    Excel 2007
    Posts
    72

    Re: How to automate getting information from the web, e.g., temperature, daily ?

    Hey amotto,
    thanks for your help ! What you were just referring to might work ! One of the teachers opens the workbook each morning about 7:45am and takes attendance, as kids come in, for about 15 minutes.

    -rob

  6. #6
    Forum Contributor
    Join Date
    08-22-2011
    Location
    Texas, United States
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    516

    Re: How to automate getting information from the web, e.g., temperature, daily ?

    Rob,

    Look at my previous post if you have not already, there is a link that may help you make your program self sustaining since it is being opened daily, this link and google search should help you do the trick.

+ 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