disable print preview
Posted by Jason Spears on March 28, 2001 7:30 PM
Is there any way to disable the print preview function? I have several pages in a workbook, and as a before_print event I have
Private Sub Workbook_BeforePrint(Cancel As Boolean)
if userform1.visible=false then
cancel=true
userform1.show
end if
for the userform1 it has several checkboxes and two buttons (print and Cancel)
print goes through and prints the checked pages
cancel just unloads the form
everything works fine except if you push print preview the form will load and if you press cancell the system hang. Is there any way to disable the print preview, or have the code ignor the print preview command?
Thanks
Jason