I have to put own image in custom toolbar of Excel 2000. Can some body help me out?
Dim sFile, ImgSheet
sFile = ActiveWorkbook.Path & "\Images\TheMarket.jpg"
Const sNAME = "MyToolFace"
'Delete (free memory) toolbar before creation
Call DeleteTMCToolbar
Set cbBar = CommandBars.Add(Name:=cCommandBarID, Position:=msoBarTop)
Set cbImage = cbBar.Controls.Add(Type:=msoControlButton)
With cbImage
.FaceId = 5
.Caption = "TheMarketsImage"
.Style = msoButtonIcon
.PasteFace
End With
2006-08-03
01:22:27
·
1 answers
·
asked by
padam_india
1
in
Computers & Internet
➔ Programming & Design