PC Review


Reply
Thread Tools Rate Thread

BeforePrint Event - "PrintOut" does not give Print Dialog

 
 
=?Utf-8?B?Um9ubnkgSGFtaWRh?=
Guest
Posts: n/a
 
      11th Oct 2006
Hello again!

I have a BeforePrint event to unhide, print, then hide rows again. The
problem is that I would still like to allow the use to see the print dialog
to choose their own particular settings (such as which tray, double-sided
printing, copies, etc.) Is this possible? Is there something else beside
the PrintOut command that I should have instead? Here's what I have now:
..
..
..
With ActiveSheet
.Rows("33:41").EntireRow.Hidden = False
.PrintOut
.Rows("33:41").EntireRow.Hidden = True
End With
..
..
..
It works just fine, but I would like the user to get the normal Print dialog
window.

Thanks in advance!

Ronny
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      11th Oct 2006
application.Dialogs(xlDialogPrint).Show

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Ronny Hamida" <(E-Mail Removed)> wrote in message
news:83FD51CA-68AB-4431-8A2E-(E-Mail Removed)...
> Hello again!
>
> I have a BeforePrint event to unhide, print, then hide rows again. The
> problem is that I would still like to allow the use to see the print

dialog
> to choose their own particular settings (such as which tray, double-sided
> printing, copies, etc.) Is this possible? Is there something else beside
> the PrintOut command that I should have instead? Here's what I have now:
> .
> .
> .
> With ActiveSheet
> .Rows("33:41").EntireRow.Hidden = False
> .PrintOut
> .Rows("33:41").EntireRow.Hidden = True
> End With
> .
> .
> .
> It works just fine, but I would like the user to get the normal Print

dialog
> window.
>
> Thanks in advance!
>
> Ronny



 
Reply With Quote
 
=?Utf-8?B?Um9ubnkgSGFtaWRh?=
Guest
Posts: n/a
 
      11th Oct 2006
Thank you, Bob!

"Bob Phillips" wrote:

> application.Dialogs(xlDialogPrint).Show
>
> --
> HTH
>
> Bob Phillips
>
> (replace somewhere in email address with gmail if mailing direct)
>
> "Ronny Hamida" <(E-Mail Removed)> wrote in message
> news:83FD51CA-68AB-4431-8A2E-(E-Mail Removed)...
> > Hello again!
> >
> > I have a BeforePrint event to unhide, print, then hide rows again. The
> > problem is that I would still like to allow the use to see the print

> dialog
> > to choose their own particular settings (such as which tray, double-sided
> > printing, copies, etc.) Is this possible? Is there something else beside
> > the PrintOut command that I should have instead? Here's what I have now:
> > .
> > .
> > .
> > With ActiveSheet
> > .Rows("33:41").EntireRow.Hidden = False
> > .PrintOut
> > .Rows("33:41").EntireRow.Hidden = True
> > End With
> > .
> > .
> > .
> > It works just fine, but I would like the user to get the normal Print

> dialog
> > window.
> >
> > Thanks in advance!
> >
> > Ronny

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Creating New Web" dialog flashes quickly and disappears stillshowing the "New Web" dialog kdonovan@crocker.com Microsoft Frontpage 3 19th Feb 2008 10:53 PM
Give Outlook a "WorkWeek View" Print Style. =?Utf-8?B?ZGM=?= Microsoft Outlook Calendar 0 24th Aug 2005 06:51 AM
Error messages: "Winsck," "Status," and "Unable to open dialog" =?Utf-8?B?Sm9u?= Microsoft Windows 2000 0 17th Dec 2003 10:46 PM
Error messages: "Winsck," "Status," and "Unable to open dialog" =?Utf-8?B?Sm9u?= Microsoft Windows 2000 0 9th Nov 2003 06:16 AM
Error messages: "Winsck," "Status," and "Unable to open dialog" =?Utf-8?B?Sm9u?= Microsoft Windows 2000 0 16th Oct 2003 03:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:01 AM.