Try it : Private Sub Workbook_Open() On Error Resume Next Dim Bar As CommandBar Application.Visible = False Sheets("Temp").Select For Each Bar In Application.CommandBars Bar.Visible = False Next With Application .CommandBars("Toolbar List").Enabled = False .CommandBars(1).Enabled = False .CommandBars("Standard").Visible = False .CommandBars("Formatting").Visible = False .CommandBars("Worksheet Menu Bar").Enabled = False .ScreenUpdating = False '敖袨怓戲 ... end sub Sub Menu_Currency() '籵蚚扢离粕等 Dim zbs112 As CommandBar Set zbs112 = Application.CommandBars.Add(, , True) With zbs112 .Visible = True .Position = msoBarTop .Name = "zbs112" End With Set BarCtlBtn = zbs112.Controls.Add(Type:=msoControlButton) ... end sub |