WeAreNotAlone
Technical User
Hi all
I am using a command button in my excel sheet to copy several cells and copy them into a different workbook.
Here is the code
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
Workbooks("EQPDuration.xls").Activate
Sheets("Eqp Summary").Activate
ActiveSheet.Range("A1,A3").Copy
Workbooks("FILMS DAYS.xls").Activate
Sheets("Performance").Activate
ActiveSheet.Range("A5,A7").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Application.ScreenUpdating = True
End Sub
this errors and says that the PasteSpecial command cannot be used on multiple selections. How do i select different cells and use PasteSpecial to put them into different cells.
Thanks
Mally
I am using a command button in my excel sheet to copy several cells and copy them into a different workbook.
Here is the code
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
Workbooks("EQPDuration.xls").Activate
Sheets("Eqp Summary").Activate
ActiveSheet.Range("A1,A3").Copy
Workbooks("FILMS DAYS.xls").Activate
Sheets("Performance").Activate
ActiveSheet.Range("A5,A7").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Application.ScreenUpdating = True
End Sub
this errors and says that the PasteSpecial command cannot be used on multiple selections. How do i select different cells and use PasteSpecial to put them into different cells.
Thanks
Mally