Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding variable corresponding to user selected cell/column

Status
Not open for further replies.

SaraCH

Technical User
Joined
May 6, 2002
Messages
2
Location
IN
Hi,

I am trying to find the document variable corresponding to a cell/column/section selected by user during formatting using BO SDK. How to get this information?. This is an urgent requirement. Any quick help/idea/sample code would be very useful.

Thanks,
SaraCH
 
bobj---> BO object

Public bobj As New busobj.Application


Set Bodoc = bobj.Documents.Open(/* provide the required parameters */)

then

Bodoc.DocumentVariables.(count/name/etc etc)

...u get all the information about the document variables.

hope it helps

krish
 
i think u will have to look for some active section kind of stuff....i have searched the BO api but couldn't find any thing like that...probably u will have to write a Macro using the Visual basic Editor Tools-->Macro....
 
Hi,

Yes.. the issue is in finding only the selected variable. Interestingly i can the see selected variable's formula in the formula editor toolbar. However i do not know how to get to that particular text box/area since BO SDK seems to support only Button and Popup Menu CmdBar Controls.

Also when i right click on the selection and select "Variables..", the dialog box shows list of variables highlighting the selected one.

This tells me that getting the selected variable is possible though i do not know at the moment how.
Any input is welcome.

SaraCH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top