A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Powerpoint
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

VBA 07 - slide side doesn't change



 
 
Thread Tools Display Modes
  #1  
Old December 11th, 2009, 04:33 PM posted to microsoft.public.powerpoint
edward
external usenet poster
 
Posts: 420
Default VBA 07 - slide side doesn't change

Hi everybody,
I use the follwoing code to change the slide size
ActivePresentation.PageSetup.SlideSize = ppSlideSizeLetterPaper

or
ActivePresentation.PageSetup.SlideSize =ppSlideSizeA4Paper

it works fine in 03 but in 07 although it shows on the User Inteface page
setup dialog box that size is changed , actually i doesn't change it and have
no effect.
Any suggestions?

--
Best regards,
Edward
  #2  
Old December 11th, 2009, 05:17 PM posted to microsoft.public.powerpoint
John Wilson[_4_]
external usenet poster
 
Posts: 125
Default VBA 07 - slide side doesn't change



"Edward" wrote in message
...
Hi everybody,
I use the follwoing code to change the slide size
ActivePresentation.PageSetup.SlideSize = ppSlideSizeLetterPaper

or
ActivePresentation.PageSetup.SlideSize =ppSlideSizeA4Paper

it works fine in 03 but in 07 although it shows on the User Inteface page
setup dialog box that size is changed , actually i doesn't change it and
have
no effect.
Any suggestions?

--
Best regards,
Edward

Works fine here Edward (in 2007 SP2)

John


__________ Information from ESET Smart Security, version of virus signature database 4679 (20091211) __________

The message was checked by ESET Smart Security.

http://www.eset.com



  #3  
Old December 11th, 2009, 06:38 PM posted to microsoft.public.powerpoint
edward
external usenet poster
 
Posts: 420
Default VBA 07 - slide side doesn't change

Thanks. I use SP2 as well. What it does here is just changing the value in
the PageSetup size dropdown , but it doesn't actually change the slide size.
so if I save the PP and close and open it again it and look at the pagesize
it's "On screen show".

other properties of the Pagesetup work fine for example 07 responds to the
following code
ActivePresentation.PageSetup.SlideWidth=480 by changing the slide width on
screen.

You said it works for you. Is there any seetings that prevents my code
working properily on my machine?

--
Best regards,
Edward


"John Wilson" wrote:



"Edward" wrote in message
...
Hi everybody,
I use the follwoing code to change the slide size
ActivePresentation.PageSetup.SlideSize = ppSlideSizeLetterPaper

or
ActivePresentation.PageSetup.SlideSize =ppSlideSizeA4Paper

it works fine in 03 but in 07 although it shows on the User Inteface page
setup dialog box that size is changed , actually i doesn't change it and
have
no effect.
Any suggestions?

--
Best regards,
Edward

Works fine here Edward (in 2007 SP2)

John


__________ Information from ESET Smart Security, version of virus signature database 4679 (20091211) __________

The message was checked by ESET Smart Security.

http://www.eset.com



.

  #4  
Old December 11th, 2009, 08:31 PM posted to microsoft.public.powerpoint
edward
external usenet poster
 
Posts: 420
Default VBA 07 - slide side doesn't change

As an alternative method I though if I can use the pageset up dialog box
maybe we can work around this issue.
something like
CommandBars.FindControl(Id:= ?).Execute
SendKeys "Enter"
but pasgesetup is in a group with policy ID 11551 and I get an error useing
the above code for openning the dialog box .
Steve , do you think I can use this method?

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.