F
Filips Benoit
Dear All,
Code below triggers error 1004: Property OLEObjects of Class Worksheet
cab't be found ( translation from Dutch)
Public Sub ResizeCommandButton(ByVal strCommandButtonName As String)
ActiveSheet.OLEObjects(strCommandButtonName).Object.Top = 10
ActiveSheet.OLEObjects(strCommandButtonName).Object.Left = 20
ActiveSheet.OLEObjects(strCommandButtonName).Object.Height = 30
ActiveSheet.OLEObjects(strCommandButtonName).Object.Width = 40
End Sub
Code below triggers error 1004: Property OLEObjects of Class Worksheet
cab't be found ( translation from Dutch)
Public Sub ResizeCommandButton(ByVal strCommandButtonName As String)
ActiveSheet.OLEObjects(strCommandButtonName).Object.Top = 10
ActiveSheet.OLEObjects(strCommandButtonName).Object.Left = 20
ActiveSheet.OLEObjects(strCommandButtonName).Object.Height = 30
ActiveSheet.OLEObjects(strCommandButtonName).Object.Width = 40
End Sub