Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Web queries: button v code

G'day all,
I have a sheet with a button. To the button is attached
a macro. The macro retrieves data via a web query
and collects the data into an Access table. The button
is manually activated a variable number of times during the day,
sometimes several times, sometimes more than 100 times.
The web queries are not identical but pick up an ID number
before each run.
Everything works OK.
I decided to automate this manual procedure by replacing
the manual part by code which feeds the new ID number to
the web query each time. However the code usually runs for
anything from approx 15 to 80 times then hangs.
Task Manager indicates Excel is using something like
40MB. I have tried various things such as deleting the sheet
and restablishing the query each time but to no avail.
The fact that the web query seems to run any number of times
when manually fired seems to suggest that there may be a timing
issue here but only a guess.
Any suggestions appreciated!
Cheers, Peter J.



  #2   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Web queries: button v code

hi,
without seeing the code, i can only guess but i would have
a hard look at the code you used to automate the manual
pocess. this is what changed.
It may be caught in a loop.

-----Original Message-----
G'day all,
I have a sheet with a button. To the button is attached
a macro. The macro retrieves data via a web query
and collects the data into an Access table. The button
is manually activated a variable number of times during

the day,
sometimes several times, sometimes more than 100 times.
The web queries are not identical but pick up an ID number
before each run.
Everything works OK.
I decided to automate this manual procedure by replacing
the manual part by code which feeds the new ID number to
the web query each time. However the code usually runs for
anything from approx 15 to 80 times then hangs.
Task Manager indicates Excel is using something like
40MB. I have tried various things such as deleting the

sheet
and restablishing the query each time but to no avail.
The fact that the web query seems to run any number of

times
when manually fired seems to suggest that there may be a

timing
issue here but only a guess.
Any suggestions appreciated!
Cheers, Peter J.



.

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
configure add button & code [email protected] uk Excel Discussion (Misc queries) 7 November 24th 08 02:34 PM
VBA code behind command button [email protected] Excel Worksheet Functions 1 March 22nd 06 08:13 PM
Disabling code using a button? Simon Lloyd[_505_] Excel Programming 6 June 23rd 04 02:16 PM
Button, but no code Aaron Fude Excel Programming 3 May 16th 04 05:32 PM
Button, but now code Aaron Fude Excel Programming 2 May 16th 04 10:35 AM


All times are GMT +1. The time now is 04:12 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"