View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Liline Liline is offline
external usenet poster
 
Posts: 1
Default Need to cast OleObject to CombBbox

Hello,
I would need to cast an OleObject into a Combobox because VBA Excel doesn't
seem to do it implicitely
That is for using the AddItem method on it (this method is not supported by
the OleObject)

This is my code
' OleObject(1) is supposed to be a combobox
ActiveSheet.OleObjects(1).AddItem "Hello"

Can someone help me please ?