Error: the specified dimension is not valid for the current chart type

raylauk

New Member
Joined
Jan 15, 2015
Messages
3
I get the above error when running my macro on the Sheet8.Paste line. Any one know why. I can't figure it out. Any help is appreciated.


If IsNumeric(CellBD5) Then
MetricsCounter = CellBD5
Else
MetricsCounter = 0
End If
If (MetricsCounter < 8#) Then
Sheet8.Select
Sheet8.Range("AB27:AO27,AB28:AO28").Select
Sheet8.Paste
Sheet8.Range("X27:AA27,X28:AA28,AK15:AO15").ClearContents
End If
Else
Sheet8.Visible = False
End If
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hello and welcome to the Board
Can you post the entire code? What do you have in the clipboard when this section executes?
 
Upvote 0
There's to much code and it won't copy and paste But wen launch excel it asks me to "open" "save" or "save as". If I "save" and open or "save as" and open, I don't get the error and the code works. Is that a clue. Why does it only happen when I "open"?
 
Upvote 0
Could you remove sensitive data from the workbook and upload it to a hosting site like Dropbox?
 
Upvote 0
The problem is, if I save the spread sheet and then open it, it doesn't get the error. Only when it's downloaded and open in the web site do I get the error. It says it's in compatibility mode because it's an xls spread sheet. I tried converting it to xlsm, but get the same error. Could it be an IE11 setting since it only happen in IE when it's downloading the spread sheet?
 
Upvote 0
You don't get all functionality when opening it with IE, see the picture:

xlol.JPG
 
Upvote 0

Forum statistics

Threads
1,221,476
Messages
6,160,058
Members
451,615
Latest member
soroosh

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