Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8990743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:34:03+00:00 2026-06-15T22:34:03+00:00

I am running Word 2003. I have a Word Document, from which I run

  • 0

I am running Word 2003.

I have a Word Document, from which I run a macro that opens other Word Documents and preforms tasks on them before saving and closing them.

Because of the number of changes I keep hitting the ‘Word has insufficent memory. You will not be able to undo this action once it is completed. Do you want to continue?‘ prompt.

I have ‘Googled’ this error and haven’t found anything other than the following which doesn’t seem to work on this:

  • Application.DisplayAlerts = False
  • Application.DisplayAlerts =
    wdAlertsNone

I think it may be because the code applies to the Document running the macro, not the document the macro is processing.

The below code is a stripped down version of the code I am using. All I have removed is some logging functions.

Function open_word_file(file_name)

    Call wd_backup_current_file_first(file_name) ' backup the current file - so that if damage is done, it can be undone.

    Documents.Open FileName:=file_name, ConfirmConversions:=False, ReadOnly:=False, AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate:="", Revert:=False, WritePasswordDocument:="", WritePasswordTemplate:="", Format:=wdOpenFormatAuto, XMLTransform:=""


    Application.DisplayAlerts = False
    'Application.DisplayAlerts = wdAlertsNone



    '<do_work>
    Call do_something_with_the_opened_file
    '</do_work>

    ActiveDocument.Save ' save the changes
    ActiveDocument.Close
End Function
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:34:04+00:00Added an answer on June 15, 2026 at 10:34 pm

    After a lot of trial and error, it was the undo buffer that was causing issue.

    I put the following line within the loops that were processing the file and the message was no longer shown.

    ActiveDocument.UndoClear
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a c# application that is opening a word document, running a .bas
We have a Windows Service which runs on 2003 Server. It opens a source
I have a windows service (currently running under Windows 2003 Server) that needs to
I have a docx Word document that contains Content Controls bound to data in
I have asp.net app which at some point takes word document, edits some of
based on Join MS Word documents I have made a console application that splices
Running SQL Server 2008 (not R2). I have a few reports that have URLs
I have developed an Add In for Word 2003 in C# using VSTO 2005
We have existing VS 2008 VSTO add-ins for Word 2003 and Excel 2003. We
I have a requirement to open and manage a Word document, stored on the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.