Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2005

Tip: Looking for answers? Try searching our database.

Error in VB Automation Application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Renjith - 24 Mar 2005 06:25 GMT
Hi There,

I am using VB6 and Microsoft Office 2003. I have written an application for
automating some tasks in MS Word. The program is executing in a loop and
gives a message:
*Word has insufficient memory. You will not be able to undo this action once
it is completed, Do you want to continue?* with options Yes and No. I am
clicking Yes. Then the program runs for the rest of the loop and Hangs. Whn I
click on the Application or the VB IDE, I get the following error:
*This action cannot be completed because the other application is busy.
Choose 'Switch To' to activate the busy application  and correct the problem*
with options Switch To and Retry. What ever option, I select the message
appears again.  I searched on some newsgroups and found a solution to add
App.OleRequestPendingTimeout = 99999 at the beginning of my code. But this
also didn't solve my problem
Please help me it is urgent.

Signature

Thanks and Regards,
Renjith R Nair

Cindy M  -WordMVP- - 30 Mar 2005 11:07 GMT
Hi =?Utf-8?B?UmVuaml0aA==?=,

It sounds as if you're trying to do a lot of formatting, without either clearing
the Undo list, or performing a Save action, thus allowing Word to clear its
"scratch files".

> I am using VB6 and Microsoft Office 2003. I have written an application for
> automating some tasks in MS Word. The program is executing in a loop and
[quoted text clipped - 9 lines]
> App.OleRequestPendingTimeout = 99999 at the beginning of my code. But this
> also didn't solve my problem

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)
Renjith - 30 Mar 2005 14:01 GMT
I was clearing the Undo List using the *UndoClear* Method. but I haven't
saved the file in between. Let me try it and update you. Thanks for your
advice.

regards,
Renjith

> Hi =?Utf-8?B?UmVuaml0aA==?=,
>
[quoted text clipped - 23 lines]
> This reply is posted in the Newsgroup; please post any follow question or reply
> in the newsgroup and not by e-mail :-)

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.