Home
Forums
New posts
Search forums
Articles
Latest reviews
Search resources
Members
Current visitors
Newsgroups
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Newsgroups
Microsoft Excel
Microsoft Excel Programming
PasteFace issue
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Jim Rech, post: 6866902"] I tried your code in Excel 97 SR-2(n) and it ran fine. I used an image I copied from another toolbutton so I know it's okay on a toolbutton. Does you image paste okay manually? -- Jim | Hi There, | | I would like to set a "picture" on a Subitem ... but I bug on: | "PasteFace"! | ===> Method PasteFace of object "CommandBarButton" failed! | Using XL97SR2 - I cannot use PasteFace method on Subitems? | | Any Ideas? | Sige | | | Sub AddShortCuts() | Dim cb As CommandBar, Item As CommandBarControl, Subitem As Object | | ThisWorkbook.Sheets(1).Pictures("Picture 8").Copy | | Set cb = Application.CommandBars("Cell") | 'item | Set Item = cb.Controls.Add(Type:=msoControlPopup,temporary:=True) | With Item | .BeginGroup = True | .Caption = "Sige View..." | End With | | 'sub-items | | Set Subitem = Item.Controls.Add(Type:=msoControlButton, | temporary:=True) | With Subitem | .BeginGroup = False | .Caption = "Clean" | .OnAction = "Trim" | .PasteFace | End With | End Sub | [/QUOTE]
Verification
Post reply
Home
Forums
Newsgroups
Microsoft Excel
Microsoft Excel Programming
PasteFace issue
Top