Ask Your Question

[basic] How to get name clicked TextFrame? [closed]

asked 2013-07-14 18:44:32 +0100

smentek gravatar image

updated 2020-07-27 15:33:53 +0100

Alex Kemp gravatar image

I have two textframes in doc with set macro "hello" on click event. How to recognize which frame has launched a macro? How to get name/ID/'handler' textframe that I clicked?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2015-11-03 23:09:03.168121

1 Answer

Sort by » oldest newest most voted

answered 2013-07-16 08:10:41 +0100

JohnSUN gravatar image

updated 2013-07-16 08:16:21 +0100

May be so?

Sub Hello()
print "You select frame '" + ThisComponent.getCurrentSelection().getName() +"'!"
End Sub


Sub Hello1(oEvent)
print "You select frame '" +oEvent+"'!"
End Sub

depending on the type of event being handled

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2013-07-14 18:44:32 +0100

Seen: 157 times

Last updated: Jul 16 '13