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

I'm using multiple page userforms. On one of the pages I have a comman
button to Print Preview one of the worksheets. My goal is to allow th
person to preview the answers after they have entered all th
information on the userforms.

The problem is when I Print Preview a page the print preview page stay
behind the userform and Excel doesn't allow me to get control of th
print preview window. I've tried open the user form with th
vbModeless option but it still does not work.

Is it possible to be in a userform and print preview a worksheet? I
so, how would I do it?

Thanks for any help

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Userforms and Print Preview

Steven,

You need to hide the form prior to calling the print preview,
then show the form after. For example,

TheForm.Hide
ActiveSheet.PrintOut Preview:=True
TheForm.Show


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Steven Ducotey "
wrote in message
...
I'm using multiple page userforms. On one of the pages I have

a command
button to Print Preview one of the worksheets. My goal is to

allow the
person to preview the answers after they have entered all the
information on the userforms.

The problem is when I Print Preview a page the print preview

page stays
behind the userform and Excel doesn't allow me to get control

of the
print preview window. I've tried open the user form with the
vbModeless option but it still does not work.

Is it possible to be in a userform and print preview a

worksheet? If
so, how would I do it?

Thanks for any help!


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Userforms and Print Preview

Thank you very much!


---
Message posted from http://www.ExcelForum.com/

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
Plot Area Automatically Expands in Print and Print Preview Myk D. Charts and Charting in Excel 2 March 12th 09 01:41 PM
First page of Excel sheerepeats in print layout or print preview philfrotonda Excel Discussion (Misc queries) 1 July 12th 07 09:28 PM
Print and Print Preview Graphic Moving Resizing 2007/2003 Adam Rayburn Excel Discussion (Misc queries) 0 April 4th 07 04:18 PM
print preview v page break preview SamB Excel Discussion (Misc queries) 0 November 16th 06 05:09 PM
cell borders that I create dont show on print preview or print scott3435 Excel Discussion (Misc queries) 2 April 6th 06 02:37 AM


All times are GMT +1. The time now is 10:00 AM.

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

About Us

"It's about Microsoft Excel"