LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Memory problem Refreshing data

Hi,

I have created the following module in order to call a specifi
workbook from inside an Access mdb and refresh the DataTables in it
(In the Excel file i have 15 sheets with 1 DataTable in each one).
Using *task scheduler* and *Win98SE* i was doing this job almost ever
day for about 10 months.
After upgrading to WinXPpro the same code give a "Not enough memory t
display completely" messagebox, _although_refreshing_has_been_done_
and wait for a reply.
If i don't use task scheduler but run the module manualy everything i
OK.

So, are there any ideas about what is going on and, more important, ar
there any suggestions? NOTE that i must use scheduling because this jo
must be done late at night.

I am using Office 97 (yes i know it is old).

------------------------------------------------------------------------------------
Dim MyXL As Object
Dim i As Long

Set MyXL = GetObject("c:\my documents\myfile.xls")

MyXL.Application.Visible = True
MyXL.Parent.Windows(1).Visible = True
MyXL.Application.ActiveWorkbook.RefreshAll

i = 1 ' This lines are just a small delay until refres
finish.
Do While i < 50000000
i = i + 1
Loop

MyXL.Application.ActiveWorkbook.Save
MyXL.Application.Quit

Set MyXL = Nothing
------------------------------------------------------------------------------------

Thank you in advance

--
Message posted from http://www.ExcelForum.com

 
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
Import External Text Data and Refreshing Problem Douglas Excel Worksheet Functions 0 August 20th 07 09:30 AM
problem refreshing data query on yahoos jcoudrie0734 Excel Discussion (Misc queries) 0 October 4th 05 12:14 AM
VC Problem refreshing pivot table Vickster3659 Excel Discussion (Misc queries) 6 June 1st 05 03:15 PM
Out of Memory Problem Todd Huttenstine Excel Programming 1 April 16th 04 08:19 PM
problem with excel refreshing Via macro pando[_2_] Excel Programming 2 April 4th 04 04:15 PM


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