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

I have a VFP9.0 application that uses an Excel 2003 workbook for a portion of
the user data entry. Because of the complexity of the workbook, the print
functionality per worksheet is automated using VBA code. To remove the
screen flicker in the custom print function the Application.ScreenUpdating
property is set to False until after the custom print is finished (either the
user prints the report or closes out of print preview).

In our upgrade to Excel 2007, it was discovered that shutting off the
ScreenUpdating property would keep the ribbon bar from updating and changing
to the print preview ribbon bar during this custom function. This would
leave the user with out any way to do anything in the print preview screen,
unless they knew the keyboard commands. With out the proper ribbon bar being
available the only way out of the the print preview screen is to 'Esc'ape out.

Because the print function is embedded in VBA code within the same workbook
that the users are doing their data entry, replacing the workbook with a new
one that has the code fix is impossible.

My current idea of a fix is to Bind to a VBA event using VFP code to set the
ScreenUpdating property to True right before the print preview screen is
shown. However I can't find the right VBA event to bind to. Any suggestions
would be greatly appreciated.

Thanks,

Corey C.
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
Handling Print Preview Event Corey C. Excel Programming 0 May 16th 08 08:04 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
Re-bind built-in Excel functionality to new OnKey event. R Avery Excel Programming 2 April 16th 04 09:59 PM


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