Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. ActiveSheet.OLEObjects("CmdUndoComboBoxes").Picture = ThisWorkbook.Sheets("BASE").ImgButtonMini.Picture.
  2.  
  3. Sub Test()
  4. Dim oldButton As CommandButton
  5. Set oldButton = Sheet1.CommandButton1
  6.  
  7. Dim newButton As CommandButton
  8. Set newButton = Sheet1.CommandButton2
  9.  
  10. newButton.Picture = oldButton.Picture
  11. End Sub
  12.  
  13. ActiveSheet.YourButtonName.Picture = ThisWorkbook.Sheets("BASE").ImgButtonMini.Picture
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement