In Excel XP I have created shortcut menus (Popup Menus). To set a custom image to a control in my shortcut menu I have the following line of code:
I also have to reference the Office 10 Object Library. The problem here is that when I install my application on a computer with Office 2000, I get an error.Code:Set cbc = cb.Controls.Add With cbc .Caption = "&Show chart for selected contract month..." .OnAction = "Datafile.xls!ShowChart" .Picture = LoadPicture(PortmgrPath & "\Images\Chart_PlotGraph.bmp") End With
"Object does not support property or method..." at the .Picture statement.
So it seems Office 2000 doesn't support this method of putting an image to a control.
There must be a way to set the image on a control in Office 2000. If my image was a builtin control image it would be easy.
Any help would be appreciated
![]()
![]()
![]()
![]()
![]()




Reply With Quote