Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Problem assinging FaceID to toolbar

I have this code, that fails when assinging the first faceID. If I
comment it out it works fine. The other faceID assign without a
problem.

With Application.CommandBars("Worksheet Menu
Bar").Controls("Tools").Controls.Add(Type:=msoCont rolPopup)
.Caption = conTopMenu
.FaceId = 23
.BeginGroup = True

With .Controls.Add(Type:=msoControlPopup)
.Caption = "Formulas" 'Submenu

With .Controls.Add
.OnAction = ThisWorkbook.FullName & "!" & conUnqCountSub
.FaceId = conUnqCountFaceID
.Caption = conUnqCountCaption
End With

With .Controls.Add
.OnAction = ThisWorkbook.FullName & "!" & conSPSub
.FaceId = conSPFaceID
.Caption = conSPCaption
End With

End With 'End Submenu

With .Controls.Add(Type:=msoControlPopup)
.Caption = "Formatting" 'Submenu

With .Controls.Add
.OnAction = ThisWorkbook.FullName & "!" & conStdFmtSub
.Caption = conStdFmtCaption
End With

End With 'End Submenu

With .Controls.Add(Type:=msoControlPopup)
.Caption = "Cell Manipulation" 'Submenu

With .Controls.Add
.OnAction = ThisWorkbook.FullName & "!" & conClrAposSub
.Caption = conClrAposCaption
End With

With .Controls.Add
.OnAction = ThisWorkbook.FullName & "!" &
conResetLastCellSub
.Caption = conResetLastCellCaption
End With

End With 'End Submenu

With .Controls.Add
.BeginGroup = True
.OnAction = ThisWorkbook.FullName & "!" & conHelpSub
.FaceId = conHelpFaceId
.Caption = conHelpCaption
End With

With .Controls.Add
.OnAction = ThisWorkbook.FullName & "!" & conAboutSub
.FaceId = conAboutFaceId
.Caption = conAboutCaption
End With
End With

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Problem assinging FaceID to toolbar

w,

A msoControlPopup will not accept a face id.
Take a look at the normal Excel menus.
Menu items that contain sub menu items do not have icon.

Jim Cone
San Francisco, USA



wrote in message
oups.com

I have this code, that fails when assinging the first faceID. If I
comment it out it works fine. The other faceID assign without a
problem.

With Application.CommandBars("Worksheet Menu
Bar").Controls("Tools").Controls.Add(Type:=msoCont rolPopup)
.Caption = conTopMenu
.FaceId = 23
.BeginGroup = True

With .Controls.Add(Type:=msoControlPopup)
.Caption = "Formulas" 'Submenu

With .Controls.Add
.OnAction = ThisWorkbook.FullName & "!" & conUnqCountSub
.FaceId = conUnqCountFaceID
.Caption = conUnqCountCaption
End With

With .Controls.Add
.OnAction = ThisWorkbook.FullName & "!" & conSPSub
.FaceId = conSPFaceID
.Caption = conSPCaption
End With

End With 'End Submenu

With .Controls.Add(Type:=msoControlPopup)
.Caption = "Formatting" 'Submenu

With .Controls.Add
.OnAction = ThisWorkbook.FullName & "!" & conStdFmtSub
.Caption = conStdFmtCaption
End With

End With 'End Submenu

With .Controls.Add(Type:=msoControlPopup)
.Caption = "Cell Manipulation" 'Submenu

With .Controls.Add
.OnAction = ThisWorkbook.FullName & "!" & conClrAposSub
.Caption = conClrAposCaption
End With

With .Controls.Add
.OnAction = ThisWorkbook.FullName & "!" &
conResetLastCellSub
.Caption = conResetLastCellCaption
End With

End With 'End Submenu

With .Controls.Add
.BeginGroup = True
.OnAction = ThisWorkbook.FullName & "!" & conHelpSub
.FaceId = conHelpFaceId
.Caption = conHelpCaption
End With

With .Controls.Add
.OnAction = ThisWorkbook.FullName & "!" & conAboutSub
.FaceId = conAboutFaceId
.Caption = conAboutCaption
End With
End With
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Problem assinging FaceID to toolbar

Thanks. I thought I was losing it.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
setting FaceID problem Gixxer_J_97[_2_] Excel Programming 2 September 27th 05 02:44 PM
.FaceID Gixxer_J_97[_2_] Excel Programming 1 September 26th 05 08:43 PM
Qn: .FaceID?? Michael Vaughan Excel Programming 3 September 6th 04 02:07 PM
FaceID Toolbar (The best one ever!) Jeremy Gollehon[_2_] Excel Programming 13 June 8th 04 11:05 PM
Toolbar icons./ FaceID Bitmaps. keepitcool Excel Programming 5 July 28th 03 08:01 PM


All times are GMT +1. The time now is 04:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"