Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 19
Default internet connection via excel macro at timed intervels & save data to excel file.

Hi Gang,

I looked around and found bits and pieces to what I was looking for
but did not find all the pieces to put it all togther.

What I am looking to do is use a macro to:

1. Access a company website website once a day (example: 5:45am).
2. Tab over a couple of radio buttons to get a section I need to
download data from ( I think I can do this)
3. Run a query from the website. (essentially clicking on a single
button to extract data from the past 24 hours)
4. Copy all of the data the data that returns (Control A).
5. Paste it unto a blank MS Excel file and save on my computer in a
pretermined folder.

As always my sincere thanks to all the members in the forum!

Sam

  #2   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 19
Default internet connection via excel macro at timed intervels & save data to excel file.

On Jul 21, 6:28 pm, Sam wrote:
Hi Gang,

I looked around and found bits and pieces to what I was looking for
but did not find all the pieces to put it all togther.

What I am looking to do is use a macro to:

1. Access a company website website once a day (example: 5:45am).
2. Tab over a couple of radio buttons to get a section I need to
download data from ( I think I can do this)
3. Run a query from the website. (essentially clicking on a single
button to extract data from the past 24 hours)
4. Copy all of the data the data that returns (Control A).
5. Paste it unto a blank MS Excel file and save on my computer in a
pretermined folder.

As always my sincere thanks to all the members in the forum!

Sam


Ok I have found a number of elements I will need:

1. The Scheduled Tasks feature to open the file. (done)
2. The macro to open start the internet connection macro. (not sure
how to do this yet).
3. The internet connection macro. (done)

I still need to tab over a few radio buttons on the website but I
think I can do this.

Can anyone help?

Thnks

Sam

  #3   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 19
Default internet connection via excel macro at timed intervels & save data to excel file.

On Jul 21, 6:28 pm, Sam wrote:
Hi Gang,

I looked around and found bits and pieces to what I was looking for
but did not find all the pieces to put it all togther.

What I am looking to do is use a macro to:

1. Access a company website website once a day (example: 5:45am).
2. Tab over a couple of radio buttons to get a section I need to
download data from ( I think I can do this)
3. Run a query from the website. (essentially clicking on a single
button to extract data from the past 24 hours)
4. Copy all of the data the data that returns (Control A).
5. Paste it unto a blank MS Excel file and save on my computer in a
pretermined folder.

As always my sincere thanks to all the members in the forum!

Sam


*Update*
Does anyone see me over here? lol In any case here's what I have so
far:

After setting the "Scheduled Tasks" to the desired time...

Private Sub Workbook_Open()
'Sub Auto_Open() myurl = "http://www.anywebsite.com"
With ActiveWorkbook.Worksheets("Daily DMR
Report").QueryTables.Add( _
Connection:="URL;" & myurl, Destination:=Worksheets("Daily DMR
Report").Cells(1, 1))
.BackgroundQuery = True
.TablesOnlyFromHTML = False
.Refresh BackgroundQuery:=False
.SaveData = True
Worksheets("Daily DMR Report").Copy
ActiveWorkbook.SendMail "
End With
End Sub

My question is how do I tab over buttons on a webpage? I have never
done this before and unfortunatley will have to wait until I get to
work tommarow. Once the website opens I still need to specifically
select the tab I want to pull the data from. Then wait for the record
query to return the data. Only then do I need to "copy all" and paste
it unto the Excel sheet.

I figured I would just mail a copy to myself or others every day to
prevent further complication of directing the data to be saved to a
specific folder. (which would be nice) but I figure I will go simple
for now. lol

Please help I'm feeling a little beleagured.

Sam

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default internet connection via excel macro at timed intervels & save data to excel file.


I actually have the same exact problem. I would like excel to download
data from a website. First my macro crashes to do this because if I hit
the refresh button it normally takes 15 seconds to get the data. My
macro button can't handle this. Second I would like to copy this data on
a seperate part of excel every 5 min. I really need some help.
thanks
Akash


*** Sent via Developersdex http://www.developersdex.com ***
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
internet connection via excel macro at timed intervels & save data to excel file. Sam Excel Worksheet Functions 1 July 22nd 07 06:08 AM
msn stock updates quit working & no internet connection in excel K9CE Excel Discussion (Misc queries) 0 July 13th 06 04:36 PM
Using Macro to save data in new excel file Spartanz Excel Programming 6 March 2nd 06 01:21 PM
internet connection via excel macro J_J[_2_] Excel Programming 2 October 18th 05 08:26 PM
How do get the internet connection wizard for Excel? Excel 2003 E-Mailing Help Please Excel Programming 0 August 27th 05 05:47 PM


All times are GMT +1. The time now is 05:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"