0
I have a problem in one macro, I am trying to copy data from one spreadsheet and paste into another, but this giving an error when doing the insertion of a new line (in yellow).
Code:
Sub copiarDadosEntrePlanilhas()
Application.ScreenUpdating = False
Worksheets(2).Rows("2:2").Insert
'copia de Formulario para Apontamento
Worksheets("Formulario").Range("B3").Copy Destination:=Worksheets("Apontados").Range("A2")
Worksheets("Formulario").Range("H3").Copy Destination:=Worksheets("Apontados").Range("B2")
Worksheets("Formulario").Range("B7").Copy Destination:=Worksheets("Apontados").Range("C2")
Worksheets("Formulario").Range("H7").Copy Destination:=Worksheets("Apontados").Range("D2")
Worksheets("Formulario").Range("N3").Copy Destination:=Worksheets("Apontados").Range("E2")
Worksheets("Formulario").Range("N7").Copy Destination:=Worksheets("Apontados").Range("F2")
Worksheets("Formulario").Range("N11").Copy Destination:=Worksheets("Apontados").Range("G2")
Worksheets("Formulario").Range("N14").Copy Destination:=Worksheets("Apontados").Range("H2")
Worksheets("Formulario").Range("B11").Copy Destination:=Worksheets("Apontados").Range("I2")
Worksheets("Formulario").Range("H11").Copy Destination:=Worksheets("Apontados").Range("J2")
Application.CutCopyMode = falso
'Mensagem de texto
MsgBox "Registro concluído!", vbInformation, "Concluído"
Application.ScreenUpdating = True
End Sub
Know which error message shows?
– Sam
nn gave to send the image here
– user111043
@danieltakeshi ready already made the change
– user111043
@danieltakeshi 3rd line "Worksheets("Pointed"). Rows("2:2"). Insert"
– user111043
@danieltakeshi all cells are merged for example the cell between B3 and F4 are merged , and yes the macro belongs to that same spreadsheet.
– user111043
I DID WHAT YOU SAID AND ND
– user111043