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.
|