TRYING TO COPY RANGE OF DATA BASEDON HEADER
Dim r, a As Long
a = 1
Do While Sheets("Address123").Cells(a, 1).Value > 0
r = r + 1
a = a + 1
Loop
Sheets("Address123").Select
Address = WorksheetFunction.Match("Address", Rows("1:1"), 0)
Sheets("Address123").Select
Range(" Address:a").Select (error)
Selection.Copy
Sheets("Loc").Range("D1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
While trying like dis facing error.can anyone help me out?
Dim r, a As Long
a = 1
Do While Sheets("Address123").Cells(a, 1).Value > 0
r = r + 1
a = a + 1
Loop
Sheets("Address123").Select
Address = WorksheetFunction.Match("Address", Rows("1:1"), 0)
Sheets("Address123").Select
Range(" Address:a").Select (error)
Selection.Copy
Sheets("Loc").Range("D1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
While trying like dis facing error.can anyone help me out?
Last edited: