![]() |
|
#2
|
||||
|
||||
|
Hi Jenn,
I'd suggest: ByVal dest as Long and, instead of: conditionally changing the destination, always use: wdSendtToNewDocument Also, instead of: With .ActiveDocument ... End With Set oDoc2 = objWord.ActiveDocument 'MsgBox oDoc2.Name With oDoc2 ... End with use: Set oDoc2 = objWord.ActiveDocument With oDoc2 ... End with and, where you have: .SaveAs myPath & "\" & rpt_od & ".docx" introduce the dest test at this point to conditionally save (via SaveAs) or print (via .Printout) the document, then close it without saving.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Printer Problems-Need to reload printer each day | jekronenfeld | Windows | 1 | 11-24-2014 12:35 AM |
Help Sending Mail Merge Document
|
dazwm | Mail Merge | 8 | 01-28-2014 01:00 PM |
Problem with saving document after paste some contents from another document
|
expert4knowledge | Word | 3 | 11-26-2013 03:53 AM |
| MS Word 2003, printer queue in 'printer properties' shows 1 job; no job in printer | benhuxham | Word | 0 | 07-25-2011 06:58 PM |
Select printer to document
|
JosL | Office | 3 | 03-07-2009 12:40 PM |