How to access DynProperties("Function") of a button

How to access DynProperties("Function") of a button

Hi,
I'm trying to execute a function linked to a button element from vba.
But i cant figure out the syntax to execute the function.
Hope someone can help me out here.
Public Sub LeftClickUp_Default(obElem As Element)
Dim Func1 As RtFunction
Set Func1 = obElem.DynProperties("Function") 'This gives error "requires object"
Func1.Start
End Sub

Justin

This is a migrated post! Originally posted on 20.09.2012 by user jjplaw. Please be aware that information can be outdated.