Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have an Excel spreadsheet that I use to link information to Word documents.
I have created a hyperlink which opens the Word Document and updates the links, but I was wondering if a macro could be written that would: 1. Open the Doc 2. Update the Links 3. Print the document 4. Save the document 5. Close the document I would then be able to create a control button that would allow the users to click on one button to complete the process. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Mike
Try something like this Sub test() Dim WD As Object Set WD = CreateObject("Word.Application") WD.Documents.Open ("C:\ron.doc") WD.ActiveDocument.PrintOut Background:=False WD.ActiveDocument.Close WD.Quit Set WD = Nothing End Sub -- Regards Ron de Bruin http://www.rondebruin.nl "Mike_Shimandle" wrote in message ... I have an Excel spreadsheet that I use to link information to Word documents. I have created a hyperlink which opens the Word Document and updates the links, but I was wondering if a macro could be written that would: 1. Open the Doc 2. Update the Links 3. Print the document 4. Save the document 5. Close the document I would then be able to create a control button that would allow the users to click on one button to complete the process. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reading Word document by using Excel Macro | Excel Discussion (Misc queries) | |||
Excel - Printing a page that contains an Embedded Word Document | Excel Discussion (Misc queries) | |||
Problems printing a word document with linked excel tables. | Excel Discussion (Misc queries) | |||
Problems Printing a Linked Word document | Excel Discussion (Misc queries) | |||
using excel macro to activate word document | Excel Programming |