DRJ
MrExcel MVP
- Joined
- Feb 17, 2002
- Messages
- 3,853
I am having a little trouble with a userform. When I press print the userform comes up and I can select what sheets to print out. No problem here, but if I press print preview and select a page to print it will go to the print preview screen, but if I do not select anything or press the cancel button to just uinload the form excel gets hung up. Maybe becauase there is nothing to show in the print preview?
Anyways is there a simple way to just cancel the print if print preview was pressed. I don't want to disable any of the menu bar items or anything like that, I was just wondering if the before print event can determine if print was pressed or print preview? Or if anyone knows what the problem might be?
Anyways is there a simple way to just cancel the print if print preview was pressed. I don't want to disable any of the menu bar items or anything like that, I was just wondering if the before print event can determine if print was pressed or print preview? Or if anyone knows what the problem might be?