Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
How can I get my macro to revert to original colours
I have a macro of which the end of its shown. With Options .DefaultBorderLineStyle = wdLineStyleSingle .DefaultBorderLineWidth = wdLineWidth050pt .DefaultBorderColor = wdColorAutomatic End With ActivePrinter = "\\bly-svr1\Control Bletchley LJ 4050" Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _ wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _ ManualDuplexPrint:=False, Collate:=True, Background:=True, PrintToFile:= _ False, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _ PrintZoomPaperHeight:=0 ActiveWindow.Close End Sub The problem I have is that its saving the document when it closes and I want it to close and NOT SAVE. Can anyone help? -- tweacle |
#2
Posted to microsoft.public.word.pagelayout
|
|||
|
|||
How can I get my macro to revert to original colours
Insert
ActiveDocument.Saved = True before the ActiveWindow.Close -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP "tweacle" wrote in message ... I have a macro of which the end of its shown. With Options DefaultBorderLineStyle = wdLineStyleSingle DefaultBorderLineWidth = wdLineWidth050pt DefaultBorderColor = wdColorAutomatic End With ActivePrinter = "\\bly-svr1\Control Bletchley LJ 4050" Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _ wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _ ManualDuplexPrint:=False, Collate:=True, Background:=True, PrintToFile:= _ False, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _ PrintZoomPaperHeight:=0 ActiveWindow.Close End Sub The problem I have is that its saving the document when it closes and I want it to close and NOT SAVE. Can anyone help? -- tweacle |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how do I revert to the original normal document in Word 2000 | New Users | |||
How do I revert to original Word 2003 template? | Microsoft Word Help | |||
mailmerge colours | Mailmerge | |||
Colours in Office 2000 | Microsoft Word Help | |||
Tracking in different colours | Microsoft Word Help |