Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default code to disable "this cell contains a formula is not locked" warni

Hi, I have some code that copies formulas into various columns, and in one
column I fill it with formulas so as to give default values, but the column
is unlocked so the user can change as necessary, thus overwriting the formula
with a value - that's fine.

But I don't want the persistent green warning triangle in the upper left of
each cell to show. I tried to record a macro while disabling it, but it
doesn't record any code for that sequence.

Can someone help with with some VBA code that will disable the warning for
each cell in that column. I know that under Tools, Options, I can uncheck
that, but that's not the way I want to go because there are many others that
this will be distributed to.

Many thanks in advance for your help.
Harold
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default code to disable "this cell contains a formula is not locked" warni

Under application, look at ErrorCheckingOptions Object

Application.ErrorCheckingOptions.InconsistentFormu la =False

another property example:
Application.ErrorCheckingOptions.NumberAsText = False

--
regards,
Tom Ogilvy


"HGood" wrote:

Hi, I have some code that copies formulas into various columns, and in one
column I fill it with formulas so as to give default values, but the column
is unlocked so the user can change as necessary, thus overwriting the formula
with a value - that's fine.

But I don't want the persistent green warning triangle in the upper left of
each cell to show. I tried to record a macro while disabling it, but it
doesn't record any code for that sequence.

Can someone help with with some VBA code that will disable the warning for
each cell in that column. I know that under Tools, Options, I can uncheck
that, but that's not the way I want to go because there are many others that
this will be distributed to.

Many thanks in advance for your help.
Harold

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default code to disable "this cell contains a formula is not locked" w

Thanks Tom, it was:
Application.ErrorCheckingOptions.UnlockedFormulaCe lls = False
that did the trick for me.

Thanks for pointing me in that direction!

Harold



"Tom Ogilvy" wrote:

Under application, look at ErrorCheckingOptions Object

Application.ErrorCheckingOptions.InconsistentFormu la =False

another property example:
Application.ErrorCheckingOptions.NumberAsText = False

--
regards,
Tom Ogilvy


"HGood" wrote:

Hi, I have some code that copies formulas into various columns, and in one
column I fill it with formulas so as to give default values, but the column
is unlocked so the user can change as necessary, thus overwriting the formula
with a value - that's fine.

But I don't want the persistent green warning triangle in the upper left of
each cell to show. I tried to record a macro while disabling it, but it
doesn't record any code for that sequence.

Can someone help with with some VBA code that will disable the warning for
each cell in that column. I know that under Tools, Options, I can uncheck
that, but that's not the way I want to go because there are many others that
this will be distributed to.

Many thanks in advance for your help.
Harold

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I disable "cutting cells" and "drag and drop "in excel ? mwoody Excel Worksheet Functions 4 August 25th 08 03:53 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Disable the "view code" option Callan Excel Programming 2 April 10th 06 11:07 AM
Code to disable "paste" as an option Jonsson[_35_] Excel Programming 7 June 21st 04 09:33 PM
Modify code to disable "paste" Jonsson[_34_] Excel Programming 0 June 17th 04 09:10 AM


All times are GMT +1. The time now is 08:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"