Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how can I disable "cutting cells" and "drag and drop "in excel ? | Excel Worksheet Functions | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Disable the "view code" option | Excel Programming | |||
Code to disable "paste" as an option | Excel Programming | |||
Modify code to disable "paste" | Excel Programming |