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 What is best method of filling in fields on an MS Word Document?


I have a MS Word document in which I have put links to various cells i
an Excel worksheet. I print the MS Word document from Excel throug
VBA automation.

In MS Word I have checked "Update fields on Print", which updates th
fields when I issue wpApp.ActiveDocument.Printout

I am able to open the word document, and print it successfully. Th
problem I am having is that I need to print it 3,000 times as I cycl
through my code.

After about the 20 records MS Word generates an error message:

Word has insufficient memory. You will not be able to undo this actio
once it is completed. Do you want to continue? (Yes,No)

At this point I can only close winword, which leaves it running in th
background. So using task manager on the processes screen I kil
winword.exe, and then Excel crashes with:

Error #4248: This command is not available because no document i
open.

Anyone have an idea for a workaround? Or a better way to manager dat
transfer to Word (Bookmarks?)

Thanks in advance for your reply!!

Ala

--
alruf
-----------------------------------------------------------------------
alruff's Profile: http://www.excelforum.com/member.php...fo&userid=1500
View this thread: http://www.excelforum.com/showthread.php?threadid=26702

 
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 filling fields answerproject Excel Discussion (Misc queries) 2 February 23rd 09 04:06 PM
can we link fields from a form in word document to excel Sunil Excel Discussion (Misc queries) 0 February 6th 06 09:26 PM
Word found no merge fields in your main document. lburg801 Excel Discussion (Misc queries) 0 November 28th 05 08:01 PM
Use Excel fields in Word document Brent Excel Discussion (Misc queries) 1 December 9th 04 05:36 PM
Excel Cells to specific fields in word document Gerry[_6_] Excel Programming 1 October 23rd 03 02:50 AM


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