Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Office Automation - 2000

I am not a VBA programmer but by recording macros and doing a little
research in Knowledge Base on Microsoft.com, I have managed to do the
following

Open an Excel 2000 spread sheet with the master file of names, dates &
places using a macro
Using the same macro to open Word 2000 and calling a macro in Word that
inserts names, dates, places from the Excelfile into a form letter in
Word.
Then the macro in Word 2000 sends the letter to print.
Control returns to Excel and the macro closes the Word Application and
document, ie,
WordApp.Quit savechanges:=wdDoNotSaveChanges
Set WordApp = Nothing

Problem is, macro is faster than the print command and with the Printer
Status Box open, I see the document spooling, then it disappears
(result=no printed page) as control comes from the Word macro back to
the Excel macro and Word closes.

I have monkeyed around with DoEvents and with a timer but I have not
come up with anything very clean.

Any ideas?

Thanks,

Anasazi Andy

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Office Automation - 2000

Word is probably doing a background print. Set it to do a foreground print.

Tools=Options in Word I would guess (and probably can be done in code as
well)

--
Regards,
Tom Ogilvy


wrote in message
ups.com...
I am not a VBA programmer but by recording macros and doing a little
research in Knowledge Base on Microsoft.com, I have managed to do the
following

Open an Excel 2000 spread sheet with the master file of names, dates &
places using a macro
Using the same macro to open Word 2000 and calling a macro in Word that
inserts names, dates, places from the Excelfile into a form letter in
Word.
Then the macro in Word 2000 sends the letter to print.
Control returns to Excel and the macro closes the Word Application and
document, ie,
WordApp.Quit savechanges:=wdDoNotSaveChanges
Set WordApp = Nothing

Problem is, macro is faster than the print command and with the Printer
Status Box open, I see the document spooling, then it disappears
(result=no printed page) as control comes from the Word macro back to
the Excel macro and Word closes.

I have monkeyed around with DoEvents and with a timer but I have not
come up with anything very clean.

Any ideas?

Thanks,

Anasazi Andy



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
Office 2000/Office 2003 Excel not printing landscape vise versa BAHTTEXT in English text Setting up and Configuration of Excel 1 April 17th 06 01:37 PM
Automation Error when upgrading from 2000 to Office XP JGeniti Excel Programming 0 December 1st 05 09:34 PM
Office automation application which will work with any version of office C#.NET Silly Programmer Excel Programming 1 February 21st 04 10:54 AM
RP - Office 2000 automation parameters Access and excel Matt. Excel Programming 5 December 16th 03 07:55 PM
Office 2000: excel to access automation and parameters Matt. Excel Programming 0 December 15th 03 09:33 PM


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