Hi everyone,
How does one have to reference a form control button to be able to copy it from one tab to another in the same worksheet?
Copying the whole tab does not solve the problem sadly. Also, when trying to use the code resulting from the macro recorder, I am being told my button cannot be found. The button is called Send e-mail
The syntax of my copy-paste job (the button is in the range mentioned)
Sheets("Template by del").Select
ActiveSheet.Range("A1:Z500").Copy
Sheets("Sheet" & k).Select
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, _ SkipBlanks:=False, Transpose:=False
What the macro recorder says
Sheets("Template by del").Select
ActiveSheet.Shapes("Button 1").Select
Selection.Copy
Sheets("Sheet" & k).Select
Range("J1").Select
ActiveSheet.Buttons.Add(960.75, 15.75, 108, 21.75).Select
ActiveSheet.Paste
How does one have to reference a form control button to be able to copy it from one tab to another in the same worksheet?
Copying the whole tab does not solve the problem sadly. Also, when trying to use the code resulting from the macro recorder, I am being told my button cannot be found. The button is called Send e-mail
The syntax of my copy-paste job (the button is in the range mentioned)
Sheets("Template by del").Select
ActiveSheet.Range("A1:Z500").Copy
Sheets("Sheet" & k).Select
Selection.PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, _ SkipBlanks:=False, Transpose:=False
What the macro recorder says
Sheets("Template by del").Select
ActiveSheet.Shapes("Button 1").Select
Selection.Copy
Sheets("Sheet" & k).Select
Range("J1").Select
ActiveSheet.Buttons.Add(960.75, 15.75, 108, 21.75).Select
ActiveSheet.Paste