Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Print Preview & Custom Menu Bars


Good afternoon.

I have a user form which will allow a user to select print preview t
view the document. The problem I have run into is that after the use
has viewed the document in print preview, I don't know how to make ge
the user back to a userform. Right now the basic code is:

Private Sub PreviewGOF_Click()

SetupComplete.Hide

ActiveSheet.PageSetup.PrintArea = "$A$1:$F$40"
ActiveWindow.SelectedSheets.PrintPreview

End Sub

Any ideas on how I might get back to the userform when the user select
the close option in print preview? Also, any ideas on how to customiz
the menu bar in print preview? I would only like to have the followin
options: zoom, print, close.

Thanks in advance for any assistance!
cheers,
d

--
toocol
-----------------------------------------------------------------------
toocold's Profile: http://www.excelforum.com/member.php...fo&userid=3160
View this thread: http://www.excelforum.com/showthread.php?threadid=53165

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Print Preview & Custom Menu Bars

ActiveWindow.SelectedSheets.PrintPreview False

is about the best you can do

Look at SetFocus method.

--
Regards,
Tom Ogilvy


"toocold" wrote:


Good afternoon.

I have a user form which will allow a user to select print preview to
view the document. The problem I have run into is that after the user
has viewed the document in print preview, I don't know how to make get
the user back to a userform. Right now the basic code is:

Private Sub PreviewGOF_Click()

SetupComplete.Hide

ActiveSheet.PageSetup.PrintArea = "$A$1:$F$40"
ActiveWindow.SelectedSheets.PrintPreview

End Sub

Any ideas on how I might get back to the userform when the user selects
the close option in print preview? Also, any ideas on how to customize
the menu bar in print preview? I would only like to have the following
options: zoom, print, close.

Thanks in advance for any assistance!
cheers,
dw


--
toocold
------------------------------------------------------------------------
toocold's Profile: http://www.excelforum.com/member.php...o&userid=31608
View this thread: http://www.excelforum.com/showthread...hreadid=531654


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Print Preview & Custom Menu Bars

If you are showing it modally (the default), maybe it is as simple as:

Private Sub PreviewGOF_Click()

SetupComplete.Hide

ActiveSheet.PageSetup.PrintArea = "$A$1:$F$40"
ActiveWindow.SelectedSheets.PrintPreview
SetupComplete.Show
End Sub

--
Regards,
Tom Ogilvy


"toocold" wrote:


Good afternoon.

I have a user form which will allow a user to select print preview to
view the document. The problem I have run into is that after the user
has viewed the document in print preview, I don't know how to make get
the user back to a userform. Right now the basic code is:

Private Sub PreviewGOF_Click()

SetupComplete.Hide

ActiveSheet.PageSetup.PrintArea = "$A$1:$F$40"
ActiveWindow.SelectedSheets.PrintPreview

End Sub

Any ideas on how I might get back to the userform when the user selects
the close option in print preview? Also, any ideas on how to customize
the menu bar in print preview? I would only like to have the following
options: zoom, print, close.

Thanks in advance for any assistance!
cheers,
dw


--
toocold
------------------------------------------------------------------------
toocold's Profile: http://www.excelforum.com/member.php...o&userid=31608
View this thread: http://www.excelforum.com/showthread...hreadid=531654


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Print Preview & Custom Menu Bars


Thanks Tom,

So far, so good!
Cheers,
dw


--
toocold
------------------------------------------------------------------------
toocold's Profile: http://www.excelforum.com/member.php...o&userid=31608
View this thread: http://www.excelforum.com/showthread...hreadid=531654

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete custom menu bars Martin Walter Setting up and Configuration of Excel 1 June 27th 06 01:15 PM
Lost all my menu bars and tool bars CathyJ Excel Discussion (Misc queries) 3 August 8th 05 12:49 PM
linking chart menu bars and worksheet menu bars majikman[_8_] Excel Programming 0 May 10th 04 09:45 PM
print preview menu luis ortiz Excel Programming 3 November 10th 03 11:13 AM
Close button on Custom Menu Bars Aaron[_6_] Excel Programming 2 July 18th 03 03:58 AM


All times are GMT +1. The time now is 08:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"