Ver Mensaje Individual
  #4 (permalink)  
Antiguo 15/01/2010, 15:53
Avatar de Carlojas
Carlojas
 
Fecha de Ingreso: junio-2007
Ubicación: Shikasta
Mensajes: 1.272
Antigüedad: 16 años, 10 meses
Puntos: 49
Respuesta: Crear Control al Ejecutar Macro

Buenas tardes compañeros les comento, al fin pude realizar lo que necesitaba de esta forma:

Código vb:
Ver original
  1. Sub Crear_Combos()
  2. Dim cb As OLEObject, MySht As Worksheet
  3. Application.ScreenUpdating = False
  4. With ActiveSheet
  5.     Set cb = .OLEObjects.Add(ClassType:="Forms.Combobox.1", _
  6.         Left:=.[$N$11].Left, Top:=.[$N$11].Top, Width:=.[$N$11:$O$11].Width, _
  7.         Height:=.[$N$11].Height)
  8. End With
  9. With cb
  10.         .Object
  11.         .BackColor = &H80000005
  12.         .BackStyle = fmBackStyleTransparent
  13.         .Style = 2
  14. End With
  15. Application.ScreenUpdating = True
  16. End Sub

Saludos.
__________________
"SELECT * FROM Mujeres WHERE situacion NOT IN ('CASADAS','CON HIJOS','ATORMENTADAS','CUASI-ENNOVIADAS') AND personalidad <> 'INTENSA'"