1.代码 
          Application.CommandBars.Add   "InsertPrice",   msoBarTop  
          Application.CommandBars("InsertPrice").Visible   =   True  
          Application.CommandBars("InsertPrice").Protection   =   msoBarNoMove   +   msoBarNoCustomize  
          Set   Control1   =   Application.CommandBars("InsertPrice").Controls.Add(msoControlButton,   1)  
          Control1.Caption   =   "数据导入"  
          Control1.OnAction   =   "insertData"  
          Control1.Visible   =   True
2.手工
          Workspace->Customize->MenuBar
          Key IN:VBA RUN MAIN(BasMain.checkIn)

相关文章:

  • 2021-11-04
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2021-07-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-18
  • 2022-12-23
  • 2021-12-19
  • 2021-12-04
  • 2021-08-22
相关资源
相似解决方案