K
K Warner
Using Excel 2007.
Can someone tell me how to add a MonthView oleObject to a worksheet using
VBA?
I have tried: (aSheet has been set to the ActiveSheet)
Set oleMonthView = aSheet.OLEObjects.Add _
(ClassType:="forms.MonthView")
Set oleMonthView = aSheet.OLEObjects.Add _
(ClassType:="forms.MonthView.1")
Set oleMonthView = aSheet.OLEObjects.Add _
(ClassType:="forms.microsoft monthview control")
+ a few other variations.
I always get Runtime error '1004': Cannot insert object.
Can someone tell me how to add a MonthView oleObject to a worksheet using
VBA?
I have tried: (aSheet has been set to the ActiveSheet)
Set oleMonthView = aSheet.OLEObjects.Add _
(ClassType:="forms.MonthView")
Set oleMonthView = aSheet.OLEObjects.Add _
(ClassType:="forms.MonthView.1")
Set oleMonthView = aSheet.OLEObjects.Add _
(ClassType:="forms.microsoft monthview control")
+ a few other variations.
I always get Runtime error '1004': Cannot insert object.