Here is a small demo I made for you to see how to control the
command buttons in Excel from VB. The demo creates a new
workbook and creates a command button in Excel. Then on the
click of the vb button it will change the visibility of the Excel
command button.
VB Code:
  1. 'Add a reference to MS Excel xx.x Object Library
  2. 'Add a reference to MS Office xx.x Object Library
  3. 'Add one command button (Command1)
  4. Option Explicit
  5.  
  6. Dim oXL As Excel.Application
  7. Dim oWB As Excel.Workbook
  8. Dim oSHT As Excel.Worksheet
  9. Dim oSHP As Excel.Shape
  10.  
  11. Private Sub Command1_Click()
  12.     For Each oSHP In oSHT.Shapes
  13.         If oSHP.Type = msoOLEControlObject And oSHP.Name = "CommandButton1" Then
  14.             'Toggle the visibility property of the Excel command button on each click of the vb button
  15.             oSHP.Visible = Not oSHP.Visible
  16.         End If
  17.     Next
  18. End Sub
  19.  
  20. Private Sub Form_Load()
  21.     Set oXL = New Excel.Application
  22.     'Add a new workbook for the demo
  23.     Set oWB = oXL.Workbooks.Add
  24.     oWB.Activate
  25.     oXL.Visible = True
  26.     Set oSHT = oWB.Worksheets("Sheet1")
  27.     'Add a command button to sheet1
  28.     oSHT.Shapes.AddOLEObject Left:=100, Top:=100, Width:=100, Height:=25, ClassType:="Forms.CommandButton.1"
  29. End Sub
  30.  
  31. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
  32.     'Clean up
  33.     Set oSHP = Nothing
  34.     Set oSHT = Nothing
  35.     oWB.Close False
  36.     Set oWB = Nothing
  37.     oXL.Quit
  38.     Set oXL = Nothing
  39. End Sub
Enjoy