Hiding error indicators

M

MrBlades

I often have to display results from an excel file in powerpoint or on paper,
so I've adjusted the "Error Checking" tab under "Options" to remove the error
indicators for the most common errors ("Inconsistent Formula...", "Formula
Omits Cells...").

If I send the file to other people who haven't modified their "Error
Checking" tabs, those error indicators will show up again.

Is there anyway to hide those error indicators permanently, no matter who
opens up the file?

Thanks.
 
G

Gord Dibben

Turn off EC when workbook opens............

Private Sub Workbook_Open()
Application.ErrorCheckingOptions.BackgroundChecking = False
End Sub

Turn back on if user switches workbooks.......................

Private Sub Workbook_Deactivate()
Application.ErrorCheckingOptions.BackgroundChecking = True
End Sub

Turn back off if user switches back to yours...............................

Private Sub Workbook_Activate()
Application.ErrorCheckingOptions.BackgroundChecking = False
End Sub

Turn back on when user closes yours........................

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.ErrorCheckingOptions.BackgroundChecking = True
End Sub

All to be copied to Thisworkbook module.


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top