Run Macro from TextRange

  • Thread starter Thread starter km
  • Start date Start date
K

km

In a PowerPoint 2000 presentation I've got a paragraph of text in a single
TextBox. There are several words in the paragraph, which when clicked on need
to run a macro. All the words need to run the same macro. My problem is
getting the macro to know which word was clicked. Thanks in advance for any
ideas.

(placing seperate shapes over the words, and then getting and keeping them
lined up would be very labor intensive due to the large number of
slides/words)
 
You should be able to highight the words, and choose Action Settings
from the Slide Show Menu. From there, you can assign a macro to the
words, just like you would assign a macro to a shape.
--David
 
David,

Thanks for the response. I am able to assign the macro to the words. The
trouble I am having is getting the macro to know which word was clicked.
 
David,

Thanks for the response. I am able to assign the macro to the words. The
trouble I am having is getting the macro to know which word was clicked.

Sorry. I misread your post. I don't think you can do that unless the words
are each in their own text box. I don't think VBA has any way of knowing
which word was clicked unless each word runs its own separate macro.

Hmm. There's an idea. I wonder if you could write a macro to assign each
word it's own separate macro. That could work as long as you wrote all the
macros in advance (because VBA can't write VBA code, I think).

--David
 
Using the debugger, which only works in edit mode :(
I can drill down to the TextBox and see that it has an ActionSetting
assigned of type "mixed". But I haven't been able to figure out how the
TextRange for the specific words is associated with the macro.
 
Back
Top