Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Modal Userform and Preview on Screen

Hi,

I have made my own Print dialog (a modal userform) with a button Preview on
it. Now, I test it out and the userform stays in front of the (background)
printpreview. There is no way to get out of this, unless resetting my
computer. Is there a way to get out of this situation without losing my
code? (I know I had to hide the userform but I forgot!)

Thanks
Jos Vens


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Modal Userform and Preview on Screen


Hello Jos,

To hide the from: UserForm1.Hide

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=507921

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Modal Userform and Preview on Screen

Hi Leith,

If you read my question well, I know you have to hide the form, but what if
you didn't? Is the code gone? Can you still get it in any way? eg. you did
not save your code for a couple of hours... is it lost?

Jos


"Leith Ross"
schreef in bericht
...

Hello Jos,

To hide the from: UserForm1.Hide

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile:
http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=507921



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 227
Default Modal Userform and Preview on Screen

Can you click the Close box at the upper right on the form? Gets rid
of the form and stops its code.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Modal Userform and Preview on Screen

No, you can't do nothing, neither in excel, nor in vba: everything is
blocked until you close the preview screen, but you can't close it because
the upper form is modal. Even Ctrl-Break does not work, but maybe a
key-combination that I don't know works to get rid of either the preview
window, or the modal form.

Jos

"Mark Lincoln" schreef in bericht
oups.com...
Can you click the Close box at the upper right on the form? Gets rid
of the form and stops its code.





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 227
Default Modal Userform and Preview on Screen

How about Ctrl-Alt-Del to get to the Task List? With luck, you can
close the preview (if its process is listed separately) without closing
Excel.

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
Userform modal Dave K[_3_] Excel Discussion (Misc queries) 1 April 9th 10 07:41 AM
GetOpenFileName called from modal userform.. enables workbook windows. BUG? keepITcool Excel Programming 5 July 29th 05 02:40 PM
Forms that are modal in 97 are not modal in 2003 Old Car Excel Discussion (Misc queries) 1 April 27th 05 08:25 AM
Forms that are modal in 97 are not modal in 2003 Old Car Excel Programming 1 April 27th 05 08:25 AM
Excel97 Userform to be system modal/equivalent George J Excel Programming 2 September 26th 04 11:05 PM


All times are GMT +1. The time now is 11:09 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"