PC Review


Reply
Thread Tools Rate Thread

Change view without activating sheet? - Repost

 
 
michael.beckinsale
Guest
Posts: n/a
 
      13th Jun 2008
Hi All,

Below is a code snippet from a routine that loops through each sheet
in a workbook. The routine copies / pastes ranges into powerpoint so
l
need to ensure the sheet is in normal view to avoid pages numbers etc
being passed to PP


Sht1.Activate
If ActiveWindow.View = xlPageBreakPreview Then
ShtView = "Yes"
ActiveWindow.View = xlNormalView
End If


How can l achieve this without using Sht1.Activate?


I want to avoid the 'flashing' caused by the Sht1.Activate. If l use
Application.Screenupdating = False the data is not passed to PP


Regards


Michael


 
Reply With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      13th Jun 2008
Why the repost, looks same as your first post just a couple of hours
earlier.

Regards,
Peter T

"michael.beckinsale" <(E-Mail Removed)> wrote in message
news:dfa35a95-dc38-4d8e-bd65-(E-Mail Removed)...
> Hi All,
>
> Below is a code snippet from a routine that loops through each sheet
> in a workbook. The routine copies / pastes ranges into powerpoint so
> l
> need to ensure the sheet is in normal view to avoid pages numbers etc
> being passed to PP
>
>
> Sht1.Activate
> If ActiveWindow.View = xlPageBreakPreview Then
> ShtView = "Yes"
> ActiveWindow.View = xlNormalView
> End If
>
>
> How can l achieve this without using Sht1.Activate?
>
>
> I want to avoid the 'flashing' caused by the Sht1.Activate. If l use
> Application.Screenupdating = False the data is not passed to PP
>
>
> Regards
>
>
> Michael
>
>



 
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
change custom view when leaving a sheet Graham Y Microsoft Excel Programming 12 20th May 2009 04:00 PM
Change view without activating sheet? michael.beckinsale Microsoft Excel Programming 5 13th Jun 2008 02:46 PM
[help]how to change embedded excel sheet 's view range? BlueCoast Microsoft Excel Programming 0 9th Apr 2008 05:48 AM
Activating Sheet from a List =?Utf-8?B?TWFnbml2eQ==?= Microsoft Excel Programming 11 31st May 2006 03:20 PM
Problem activating a sheet jowatkins Microsoft Excel Programming 1 19th Jan 2004 01:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:16 AM.