Copy area and paste area size error

Manoj Gaidhankar

New Member
Joined
May 27, 2022
Messages
20
Office Version
  1. 2021
Platform
  1. Windows
Hi there,

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.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
I have raised the similar concern in the below forum:
 
Upvote 0
What does the error message say?
Which line in the macro do you have the error?
 
Upvote 0
The issue has been fixed as there were few hidden files due to which data was incorrectly copied and also there was an internal error due to which it happened. Thank you for your interest.
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,387
Members
449,080
Latest member
Armadillos

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top