Manoj Gaidhankar
New Member
- Joined
- May 27, 2022
- Messages
- 20
- Office Version
- 2021
- Platform
- Windows
Hi there,
Please find the following code:
By using this code all the columns data are getting copied and it is throwing an error. Is there any alternate way for this.
Thank you.
Please find the following code:
VBA Code:
With Workbooks("Sheet1.xlsx").Worksheets(1)
.Range("BC2", .Range("BC" & Rows.Count).End(3)).SpecialCells(xlCellTypeVisible).Copy
End With
Workbooks("Sheet2.xlsx").Worksheets(2).Range("H" & Rows.Count).End(3)(2).PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
By using this code all the columns data are getting copied and it is throwing an error. Is there any alternate way for this.
Thank you.