Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Marty Jackson   on Mar 03 In MS Office Category.

  
Question Answered By: Grant Jones   on Mar 03

This code  assumes you have a custom toolbar
with all your macros linked to control buttons on it:

Set c = CommandBars("NameOfCustomToolbar")

For Each b In c.Controls
strLong = b.OnAction
strShort = Right(strLong, Len(strLong) - InStrRev(strLong, "!"))
b.OnAction = strShort
Next b

c.Visible = True

Share: