Hello,
I have code that copies data from columns A-K of one spreadsheet and pastes into columns A-K of another.
The issue is that I would like to exclude the data in Column I from pasting...ie paste with blanks instead. I would like to modify on the paste side of the code and not in the initial selection if possible.
Code
'Selects col A-K of one spreadsheet
Dim LR As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
Range("A2:K" & LR).SpecialCells(xlCellTypeVisible).Select
Selection.Copy
'Pastes to Consolidation WB...
Can this paste data in col A-K but put override col I with blanks...? Cavaet...There are rows above this pasted data in Col I that shouldn't be deleted. I just want to exclude from the Paste selection
Consolidation.Activate
With Sheets("Sheet1")
.Range("A1").End(xlDown).Offset(1).PasteSpecial Paste:=xlPasteAll
End With
Thanks Mike
I have code that copies data from columns A-K of one spreadsheet and pastes into columns A-K of another.
The issue is that I would like to exclude the data in Column I from pasting...ie paste with blanks instead. I would like to modify on the paste side of the code and not in the initial selection if possible.
Code
'Selects col A-K of one spreadsheet
Dim LR As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
Range("A2:K" & LR).SpecialCells(xlCellTypeVisible).Select
Selection.Copy
'Pastes to Consolidation WB...
Can this paste data in col A-K but put override col I with blanks...? Cavaet...There are rows above this pasted data in Col I that shouldn't be deleted. I just want to exclude from the Paste selection
Consolidation.Activate
With Sheets("Sheet1")
.Range("A1").End(xlDown).Offset(1).PasteSpecial Paste:=xlPasteAll
End With
Thanks Mike