View Single Post
 
Old 06-30-2012, 12:17 PM
aditya_bokade aditya_bokade is offline Windows XP Office 2007
Novice
 
Join Date: Jun 2012
Posts: 9
aditya_bokade is on a distinguished road
Default

Dear macropod,
By getting inspired by you, I tried to create a macro in Ms Power point.
I wanted a macro which after execution can apply underline, make it bold and color red the selected text.
So I went to MS Word and recorded the macro. It worked as expected.
When I copied the same procedure to MS Power point, it says
"Object required."
This is my macro:


Sub aaaaaaa()

Selection.Font.Color = wdColorRed ----> here it stops execution.

If Selection.Font.Underline = wdUnderlineNone Then
Selection.Font.Underline = wdUnderlineSingle
Else
Selection.Font.Underline = wdUnderlineNone
End If
End Sub

Yes, I have selected some text in MS Power point before running the macro.
This same idea works in MS Word but not in MS power point. If it works, it will be very helpful to me.
Please help.
Thank you.
Reply With Quote