AnsweredAssumed Answered

VBA Command Button to cycle through elements in Element Relative Display?

Question asked by wling1 on Jun 7, 2016
Latest reply on Jun 8, 2016 by wling1

Hello!

 

I have an element relative display that has 20 elements. What I am looking to do is add two command buttons. One will cycle through the elements going forward and the other one backwards (i.e. if I'm on element 1 and click the command button going forward it will take me to element 2, if I'm on element 1 and click the command button going backwards it will take me to element 20).

 

I am having trouble with the syntax of the VBA code to accomplish this. I know I need to do something with the ContextHandler but I am a little lost. Any help would be much appreciated!

 

Thanks,

Wyatt

Outcomes