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-dag johansen

hi there dag!!!


thanks a lot for your response.

my problem is slightly different.

i need to be able to run the subroutine in the VBA editor that checks
if the user is in the print preview mode when the user is actually in
teh print preview mode. not just check if he has pressed the print
preview button!!!!!


but if you try it yourself you will see that the vba editor freeezes.



for example


open a workbook. press alt-F11. write the simple sub



sub hello()

msgbox "hello"

end sub


then go back to the workbook, write something in the worksheet and then
print preview it.

then switch to the VBA editor. try to run the hello sub. nothing
works.


you see what i mean?


i appreciate any help



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default print preview-dag johansen

As you said, no code runs when you are in print preview, so you can not
interact with the user while in print preview.

--
Regards,
Tom Ogilvy

"nikolaosk" wrote in message
...
hi there dag!!!


thanks a lot for your response.

my problem is slightly different.

i need to be able to run the subroutine in the VBA editor that checks
if the user is in the print preview mode when the user is actually in
teh print preview mode. not just check if he has pressed the print
preview button!!!!!


but if you try it yourself you will see that the vba editor freeezes.



for example


open a workbook. press alt-F11. write the simple sub



sub hello()

msgbox "hello"

end sub


then go back to the workbook, write something in the worksheet and then
print preview it.

then switch to the VBA editor. try to run the hello sub. nothing
works.


you see what i mean?


i appreciate any help



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly 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 03:02 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"