Remove Formatting Runtime Error 1004

GreatOffender

Board Regular
Joined
Feb 2, 2015
Messages
53
Not the best or brightest using VBA but I've done this a 100 time before but now it's giving me grief. Keep getting runtime 1004 error. This is driving me crazy so any help would be appreciated.

Thanks,

Code:
Dim wc As Worksheet   
Set wc = Sheets("ABC")
   
wc.UsedRange.Value = wc.UsedRange.Value
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
What is the error message?
 
Upvote 0
That I find odd, as there is nothing wrong with the code you have posted.
What line is highlighted when you get the error?
Is the sheet protected?
 
Upvote 0
I have the workbook protected but it's always been protected so I'm at a loss. Just simple edit under "Developer" option.
 
Upvote 0
Is the sheet (not workbook) protected?
When you get the error click "Debug", what line of code is highlighted?
 
Upvote 0
This is on my end. Nothing runs on my laptop but the macros seem to preform "as advertised" on others. I have an idea where the problem lies (settings) but if someone has something I might be overlooking please shout it out.
 
Upvote 0
Any chance of answering my questions?
 
Upvote 0
Sorry I didn't get back sooner but work ended and that's where I leave it, at work.

It dies when it reaches "wc.UsedRange.Value = wc.UsedRange.Value". That's where the error occurs but I seem to be having problems with other "working" macros that seem to run fine on laptops other than my own. Decent quad core chip with 12mb memory running Office 2013 64bit.
 
Upvote 0
If the code works on other computers, then the problem is not with the code.
It might be worth Repairing Office & see if that helps
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,835
Members
449,051
Latest member
excelquestion515

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