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  

NEEDED | GreyScale Setting Macro



 
 
Thread Tools Display Modes
  #1  
Old July 8th, 2008, 10:44 AM posted to microsoft.public.powerpoint
pavankumar
external usenet poster
 
Posts: 1
Default NEEDED | GreyScale Setting Macro

I have some ppts, about 100 slides each. All is fine, but when is previwed in
Black and White, the content is not seen in preview, not getting printed. All
blank in black and white..... Now I'm going to ViewGreyscaleselect the
objects in each slideand change the setting to greyscale. Then I can see the
content getting printed/previwed. If the deck is small, it is fine, but if it
is like 100 slides and many files, then what?, changing the setting for each
slide is time taking. I tried recording a macro, but it applies to particular
slide, because I have selected one slide. Can anyone please change the below
code to apply for the entire deck? I will drag that to a toolbar and in one
click the entire deck will be changed to B/W setting
Sub GreyscaleSetting()
ActiveWindow.BlackAndWhite = msoTrue
ActiveWindow.Selection.SlideRange.Shapes.SelectAll
ActiveWindow.Selection.ShapeRange.BlackWhiteMode = msoBlackWhiteGrayScale
ActiveWindow.BlackAndWhite = msoFalse
ActiveWindow.BlackAndWhite = msoTrue
ActiveWindow.Selection.Unselect
End Sub

_________________
Thanks a lot
  #2  
Old July 8th, 2008, 03:53 PM posted to microsoft.public.powerpoint
Steve Rindsberg
external usenet poster
 
Posts: 9,366
Default NEEDED | GreyScale Setting Macro

In article , Pavankumar
wrote:
I have some ppts, about 100 slides each. All is fine, but when is previwed in
Black and White, the content is not seen in preview, not getting printed. All
blank in black and white..... Now I'm going to ViewGreyscaleselect the
objects in each slideand change the setting to greyscale. Then I can see the
content getting printed/previwed. If the deck is small, it is fine, but if it
is like 100 slides and many files, then what?, changing the setting for each
slide is time taking. I tried recording a macro, but it applies to particular
slide, because I have selected one slide. Can anyone please change the below
code to apply for the entire deck? I will drag that to a toolbar and in one
click the entire deck will be changed to B/W setting
Sub GreyscaleSetting()
ActiveWindow.BlackAndWhite = msoTrue
ActiveWindow.Selection.SlideRange.Shapes.SelectAll
ActiveWindow.Selection.ShapeRange.BlackWhiteMode = msoBlackWhiteGrayScale
ActiveWindow.BlackAndWhite = msoFalse
ActiveWindow.BlackAndWhite = msoTrue
ActiveWindow.Selection.Unselect
End Sub


This should do it:

Sub GreyscaleSetting()
Dim oSl As Slide
Dim oSh As Shape

For Each oSl In ActivePresentation.Slides
For Each oSh In oSl.Shapes
With oSh
.BlackWhiteMode = msoBlackWhiteGrayScale
End With
Next
Next
End Sub



-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================


 




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:58 AM.


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