Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default How to automate a import from a webpage

Aaaaaarg, i'm stuck...

I know how to make basic functions in Exel, i even made some really
complicated ones, but i think i need another approach to fix this.

I want to import a table from a webpage (easy, just make a webquery that
updates every now and then) then i want to take some of that information and
save to plot a graph, sort of like with the stockmarket.

This is my problem... i don't know how to do this. I need to copy the part i
want to keep progressiveley further away. I don't even know how to automate
the copying of one set of numbers, let alone how to make the procedure
"mobile". This is a graphic explanation of what i want to do:

http://img331.imageshack.us/my.php?i...kmarket8zg.jpg

The red part is the raw data i can fetch automatically. The green is the
part i want to save from each dataset. You can see that i have manually
copied four parts into place and i want to keep pasting the new parts onto
the right of the green area.

Please help. If indeed this is impossible with Excel i would appreciate tips
on what software could do it.

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default How to automate a import from a webpage

All you need to do is use a macro that

runs your web query (or refresh)
copies the desired data to the next column available(preferably on another
sheet)

something like this should get you started to find the column to copy to
dlc=sheets("sheet2").cells(1,columns.count).end(xl toleft).column+1
sheets("data").columns(2).copy sheets("sheet2").columns(dlc)

--
Don Guillett
SalesAid Software

"vigfus" wrote in message
...
Aaaaaarg, i'm stuck...

I know how to make basic functions in Exel, i even made some really
complicated ones, but i think i need another approach to fix this.

I want to import a table from a webpage (easy, just make a webquery that
updates every now and then) then i want to take some of that information
and
save to plot a graph, sort of like with the stockmarket.

This is my problem... i don't know how to do this. I need to copy the part
i
want to keep progressiveley further away. I don't even know how to
automate
the copying of one set of numbers, let alone how to make the procedure
"mobile". This is a graphic explanation of what i want to do:

http://img331.imageshack.us/my.php?i...kmarket8zg.jpg

The red part is the raw data i can fetch automatically. The green is the
part i want to save from each dataset. You can see that i have manually
copied four parts into place and i want to keep pasting the new parts onto
the right of the green area.

Please help. If indeed this is impossible with Excel i would appreciate
tips
on what software could do it.

Thank you.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default How to automate a import from a webpage

Thank you for the quick answer!

Unfortunately my knowledge of macros stretches as far as to record a basic
macro. Not edit it afterwards... I have tried but failed. A more elaborate
explanaition would be nice, but i think i could manage with some link to
related information.
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default How to automate a import from a webpage

Just put what I gave you in a submodify to suit your sheet namescolumns,
etc or contact me privately for custom work

sub copydatatosheet2()
dlc=sheets("sheet2").cells(1,columns.count).end(xl toleft).column+1
sheets("data").columns(2).copy sheets("sheet2").columns(dlc)
end sub

--
Don Guillett
SalesAid Software

"vigfus" wrote in message
...
Thank you for the quick answer!

Unfortunately my knowledge of macros stretches as far as to record a basic
macro. Not edit it afterwards... I have tried but failed. A more elaborate
explanaition would be nice, but i think i could manage with some link to
related information.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default How to automate a import from a webpage

It works! Thanks!

I changed copy to cut to make it more noticeable when the macro runs. Now
that i've gotten this far i have grander goals. ;)

I still don't know how to automate the macro. I still have to be there to
start the macro. It would be neat if the macro could start automaticly when
some value appears in the raw data page (at the place i cut it from). Is this
still possible?


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default How to automate a import from a webpage

Lazy aren't we?
As I said before, you can run your query or refresh from the macro and you
can even set up the macro to run automatically. Look in vba help index for
ONTIME

--
Don Guillett
SalesAid Software

"vigfus" wrote in message
...
It works! Thanks!

I changed copy to cut to make it more noticeable when the macro runs. Now
that i've gotten this far i have grander goals. ;)

I still don't know how to automate the macro. I still have to be there to
start the macro. It would be neat if the macro could start automaticly
when
some value appears in the raw data page (at the place i cut it from). Is
this
still possible?



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default How to automate a import from a webpage

Hehe, a little lazy i guess. ;) It's just comforting to deal with someone who
knows his stuff.

I will check the helpfiles... Once again, thanks.
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
Automatically import information from webpage into Excel Cell Spesh Excel Discussion (Misc queries) 3 February 4th 07 12:38 PM
Can I choose to import only certain columns from a webpage? TronBlaster Excel Discussion (Misc queries) 0 April 5th 06 05:31 PM
Microsoft Excel import a webpage error Justloseit Excel Discussion (Misc queries) 0 March 7th 06 07:11 AM
Automate Import/Export Steve Excel Discussion (Misc queries) 0 October 14th 05 06:38 PM
Automate text import Jamie Abbamont Excel Programming 2 January 28th 04 03:03 AM


All times are GMT +1. The time now is 06:45 AM.

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"