HELP- Excel Cannot Paste Data. Too Many Cell Formats

reaston

New Member
Joined
Dec 15, 2008
Messages
1
I have a huge spreadsheet with hours of work into that I have pasted data into from countless other workbooks. I am familiar with the 65,000 style limit and that excessive cutting and pasting may cause a "Excel Cannot Paste Data" or "Too Many Cell Formats" error message. However, I have yet to find a consistently reliable solution to this problem. I started using the following macro a few months ago which seemed to help but now, when using the same macro on the same workbook, I am still getting the errors. Maybe the only solution is to not copy and paste so much but I am hoping someone can provide me with a better automated solution. I am using Excel 2010. Thanks, RobertSub StyleKill()<o:p></o:p>
DimstyT As Style<o:p></o:p>
DimintRet As Integer<o:p></o:p>
OnError Resume Next<o:p></o:p>
ForEach styT In ActiveWorkbook.Styles<o:p></o:p>
If Not styT.BuiltIn Then<o:p></o:p>
If styT.Name <> "1" Then styT.Delete<o:p></o:p>
End If<o:p></o:p>
Next styT<o:p></o:p>
End Sub
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,216,051
Messages
6,128,503
Members
449,455
Latest member
jesski

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