Custom Toolbars - STILL not sticking

mrowe

Board Regular
Joined
Feb 17, 2002
Messages
232
Hi, I posted a question a few days ago about getting custom toolbars to stick to workbooks when they are emailed out to different people.

I was advised to go and attach the toolbar, which I did, but it still isn't sticking when emailed to users, and doesn't appear in their custom toolbar list either.

Is there some code I could include to make the toolbar be there for everyone?

Cheers
Matt
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
You can create toolbars 'on-the-fly' in VBA. Something like this should get you going. It's copied directly from a simple add-in I wrote:-

Code:
Private Sub Workbook_Open()
'Attempt to delete any menu just in case Excel was
'closed down improperly or crashed.
Dim Con As CommandBarControl, ConPop As CommandBarPopup
Dim ComBut As CommandBarButton
For Each Con In Application.CommandBars("Tools").Controls
    If Con.Caption = "C&lean Active Workbook" Then
        Con.Delete
    End If
Next

Set ComBut = Application.CommandBars("Tools").Controls.Add(msoControlButton)
ComBut.Caption = "C&lean Active Workbook"
ComBut.OnAction = "CleanBook"
ComBut.FaceId = 59

End Sub

HTH,
D
 
Upvote 0

Forum statistics

Threads
1,223,350
Messages
6,171,590
Members
452,412
Latest member
sprichwort

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top