artemisa34
New Member
- Joined
- Jun 28, 2018
- Messages
- 7
Hi, can you help me please? I am trying to copy some data from a sheet called "CargaETL" to another called "ETL FXS", where there's already data, so new information should be copied right after the last filled row in "ETL FXS".
The macro I am currently using is this one:
Sub CopyPasteETLFXS()
Dim DLR As Long, WLR As Long
DLR = Sheets("CargaETL").Range("B10000").End(xlUp).Row
WLR = Sheets("ETL FXS").Range("A10000").End(xlUp).Row
Sheets("CargaETL").Range("A2:BX" & DLR).Copy Destination:=Sheets("ETL FXS").Range("A" & WLR + 1)
End Sub
It returns Debug and suggests that the error may be related to line
"DLR = Sheets("CargaETL").Range("B10000").End(xlUp).Row"
Any help is appreciated!!Thanks!!
The macro I am currently using is this one:
Sub CopyPasteETLFXS()
Dim DLR As Long, WLR As Long
DLR = Sheets("CargaETL").Range("B10000").End(xlUp).Row
WLR = Sheets("ETL FXS").Range("A10000").End(xlUp).Row
Sheets("CargaETL").Range("A2:BX" & DLR).Copy Destination:=Sheets("ETL FXS").Range("A" & WLR + 1)
End Sub
It returns Debug and suggests that the error may be related to line
"DLR = Sheets("CargaETL").Range("B10000").End(xlUp).Row"
Any help is appreciated!!Thanks!!