VBA copying when cells contain large number of characters

bluntz

New Member
Joined
Dec 9, 2008
Messages
14
Hello All,

I hope you can help me with my question and perhaps provide me with an alternative solution.

I am copying the summary page from 60 different files into separate tabs in a new workbook. The formula below works fine for all files except one that contains a large amount of text in one of the cells that needs to be copied. I am copying the range "B1:N190", but in this specific file. The macro stops copying att Cell "K51". I have noticed that cell "L51" contains a lot of data, Len(L51) = 929. and I am assuming that this is why the macro stops.

Is there a way of getting around this issue?

Thanks again



Code:
For Each sht In wbSummary.Worksheets

  If wbSupportFile.Sheets("Summary").Range("B1").Value = sht.Name Then

  sht.Range("B1:N190").Value = wbSupportFile.Sheets("Summary").Range("B1:N190").Value

  End If
Next
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

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