Hello,
I have been working on filtering data from 2 Workbooks and pasting to 1 Consolidated Workbook. My issue is with executing the code to append the data in Consolidated with the data from the second workbook
Code:
'Copy Data from Second Workbook (filtered, don't include header row A1)
Dim LR As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
Range("A2:K" & LR).SpecialCells(xlCellTypeVisible).Select
Selection.Copy
'Activate Consolidation WB and append (find next blank row and paste data)
Consolidation.Activate
With Sheets("Sheet1")
.Range("A1" & .Range("A" & .Rows.Count).End(xlUp).Row + 1).PasteSpecial Paste:=xlPasteAll
End With
Application.CutCopyMode = False
The problem is the character "-" appears in multiple lines between the two data sets.
Why does the dash appear? Thinking it might be something from copying the filtered data
thanks, Mike
I have been working on filtering data from 2 Workbooks and pasting to 1 Consolidated Workbook. My issue is with executing the code to append the data in Consolidated with the data from the second workbook
Code:
'Copy Data from Second Workbook (filtered, don't include header row A1)
Dim LR As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
Range("A2:K" & LR).SpecialCells(xlCellTypeVisible).Select
Selection.Copy
'Activate Consolidation WB and append (find next blank row and paste data)
Consolidation.Activate
With Sheets("Sheet1")
.Range("A1" & .Range("A" & .Rows.Count).End(xlUp).Row + 1).PasteSpecial Paste:=xlPasteAll
End With
Application.CutCopyMode = False
The problem is the character "-" appears in multiple lines between the two data sets.
Why does the dash appear? Thinking it might be something from copying the filtered data
thanks, Mike