Yes, you can manipulate a combobox associated with a cell in an Excel sheet through OLE (Object Linking and Embedding). You can do this by using a programming language that supports OLE automation, such as VBA or Visual Basic, to access and modify the properties of the combobox object in the Excel document.
To detect if a cell is associated with a combobox through OLE, you can check the cell's ValidationType property. If the value of this property is set to xlValidateList, it indicates that the cell is associated with a combobox.
For example, in VBA you can use the following code to detect if a cell is associated with a combobox:
Sub CheckCellValidationType()
Dim c As Range
Set c = ActiveCell
If c.Validation.Type = xlValidateList Then
MsgBox "The selected cell is associated with a combobox."
Else
MsgBox "The selected cell is not associated with a combobox."
End If
End Sub
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 72 guests