VBA - ignore error in cell

SMES

New Member
Joined
Feb 10, 2010
Messages
3
Hi,

I have copied a formula across a range of cells in VBA and some of the cells in the range contain an error once the formula is pasted (which is fine) but i need to get rid of that green triangle in the corner of the cell using VBA as the front sheet is an automated dashboard and it looks bad. Can you help please?

Thanks
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
You can change the settings of the Error Checking options. I think this should come up if you click on the cell with the error.
 
Upvote 0
thanks, i know how to do it in excel but its supposed to be an automated dashboard so i need to put some code in the macro so that the error doesn't show....
 
Upvote 0
I have the same question... The code for such change would affect all cells like following.

Code:
Application.ErrorCheckingOptions.UnlockedFormulaCells = False

I am not sure, if there is a manual way to only affect only one cell, like clicking on the exclamation sign and chose one of the options...
 
Upvote 0

Forum statistics

Threads
1,213,513
Messages
6,114,064
Members
448,545
Latest member
kj9

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