/build/static/layout/Breadcrumb_cap_w.png

Example Script to remove an excell button

On Error Resume Next

Const cmdBarName = "wbDIS"

Dim oXL

Dim oAddin

Set oXL = CreateObject("Excel.Application")

removeMenuBar

'Sub to remove the command bar

'---------------------------------------------------

Sub removeMenuBar()

For Each bar In oXL.CommandBars

If bar.Name = cmdBarName Then

bar.Delete

End If

Next

End Sub

Set oXL = Nothing


Comments

This post is locked

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ