Thanks.
i did record a macro but it did not do what I wanted.
i highlighted a word, changed its font, color and size.
1. i need to know how to call this macro from the keyboard
2. when i called this macro a second time, it did the changes for another word and not the one I chose.
i see in the VB code that the range is fixed (Start:=147, Length:=10). I would like to do these changes whenever i need it.
here's the code that has been generated.
ActiveWindow.Selection.SlideRange.Shapes("Rectangle 3").Select
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Select
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Characters(Start:=147, Length:=10).Select
ActiveWindow.Selection.TextRange.Font.Name = "Comic Sans MS"
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Characters(Start:=147, Length:=10).Select
ActiveWindow.Selection.TextRange.Font.Size = 30
End Sub
Hmm, I've not delved much into using code with Power Point, but I would think that you would need to change that specific reference to one something like:
The advice I gave is correct and to the point of your question. Like TEACHING a man to fish, rather than GIVING a man a fish, my answer was designed to HELP you to DISCOVER the answer YOURSELF.
The fact that you first stated, "but it did not give any result", then stated, "i did record a macro but it did not do what I wanted" and finally, "i need to know how to call this macro from the keyboard" tells me that you are not focused.
You will get plenty of good help here at Tek-Tips if you state you questions CLEARLY, COMPLETELY and CONCISELY.
============================================
Now, please tell us EXACTLY what you are trying to accomplish with the macro. Please be CLEAR, COMPETE and CONCISE.
Hi Skip,
This is exactly what happened!
I agree that i was not very clear.
I need to change the font size and type for a set of characters many times in a slide.
my question is: is there a way to create a macro (executed by typing ctrl + st ) to do these changes?
and i agree with you: i would prefer to learn how to use macros rather than get a solution that answers one question. the problem is that i never used macros before.
a tutorial would be much appreciated.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.