Auto print document when opening
-
-
-
-
Re: Auto print document when opening
Thanks Ian
But that doesn't seem to work!
-
Re: Auto print document when opening
Are you getting any error messages, or is it simply that nothing is happening? Double check that your default printer is setu up correctly.
Ian
-
Re: Auto print document when opening
The document opens and then nothing happens, if I click the print button on the toolbar the document then prints.
Paul
-
Re: Auto print document when opening
pmorris, check that your macro security setting is on medium or low or the macro won't work
Tools>Macro>Security
:rock:
Colin
-
Re: Auto print document when opening
Quote from pmorrisWorks fine for me - are macros enabled or macro security level set to medium
-
-
Re: Auto print document when opening
Quote from IanDunnettTry changing the above to read;
CodePrivate Sub Workbook_Open() Sheets("SheetNameHere").Activate Sheets("SheetNameHere").cells(1,1).Select ActiveWindow.SelectedSheets.PrintOut Copies:=1 End Sub
Failing that send the print keys to the program, i.e.;
Code
Display MorePrivate Sub Workbook_Open() Sheets("SheetNameHere").Activate Sheets("SheetNameHere").Cells(1,1).Select Application.SendKeys ("^p") Application.Wait (Now + TimeValue("0:00:02")) Application.SendKeys ("{ENTER}") End Sub
Let me know if it's still a problem.
Ian -
Re: Auto print document when opening
Ian - this is word help and you are posting excel.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!