PC Review


Reply
Thread Tools Rate Thread

Application.ScreenUpdating problem in Excel 2007

 
 
ArielZusya
Guest
Posts: n/a
 
      12th Dec 2007
I wrote this chunk of VBA code to take a text file, import it, clean it up,
drop it into a number of spots on a worksheet, export a chunk of the
worksheet and email the export to a particular addy, and then print preview
other worksheets with the resulting data. In 2003 I used
Allplication.ScreenUpdating to turn off the wild switching to and from
different worksheets and files in the process. When I opened the same
workbook in excel 2007 it seemed to still work but I lost some functionality.
For example, if I left ScreenUpdating as False, I'd lose the ribbon across
the top on the print preview screens. Trouble is, if I set it to True just
before I tell it to ActiveWindow.SelectedSheets.PrintPreview, the ribbon
returns but it doesn't have the buttons on the ribbon enabled (so I can't
clock the print or the close buttons). Is there something I can add to the
code so this will work properly in 2007 but won't change functionality in XP
and 2003? The code in question is:

Application.ScreenUpdating = True
ActiveWindow.SelectedSheets.PrintPreview
Application.ScreenUpdating = False


Thanks!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy Range Border Excel 2007 + Screenupdating Issue Bill Microsoft Excel Discussion 2 5th Jun 2008 01:24 PM
Application.ScreenUpdating problem =?Utf-8?B?amtpdHp5?= Microsoft Excel Programming 3 12th Jan 2005 09:27 PM
Application.screenupdating is not working in Excel 2002 though it. =?Utf-8?B?dmlzcG5haXI=?= Microsoft Excel Programming 2 18th Nov 2004 01:11 PM
problem with Application.ScreenUpdating Betty Microsoft Excel Programming 8 23rd Jul 2004 09:51 PM
application.screenupdating in excel vba does not work Hans Microsoft Excel Worksheet Functions 0 30th Sep 2003 07:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:09 PM.