Kemidan2014
Board Regular
- Joined
- Apr 4, 2022
- Messages
- 226
- Office Version
- 365
- Platform
- Windows
I am wanting to add on additional columns of data to copy and paste from a macro that currently is in use and works fine
the above range being selected currently copies columns A to V from 2 to last row with data (it will be dynamic) i need to INCLUDE columns AL to AV (column W to AK being ignored)
I already tried
but that threw up an error.
below is the corresponding Paste code
any suggestions?
VBA Code:
.Range("A2:V" & lastrowupdate).SpecialCells(xlCellTypeVisible).Copy
the above range being selected currently copies columns A to V from 2 to last row with data (it will be dynamic) i need to INCLUDE columns AL to AV (column W to AK being ignored)
I already tried
VBA Code:
.Range("A2:V,AL2:AV" & lastrowupdate).SpecialCells(xlCellTypeVisible).Copy
but that threw up an error.
below is the corresponding Paste code
Code:
With desWS
.Cells(.Rows.Count, "A").End(xlUp).Offset(1).PasteSpecial xlPasteValues
.Columns.AutoFit
any suggestions?