Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Use checkbox to toggle between formula and manual input
I have an array of formulas. I wanted to enable manual user input on these array but still preserve the formula. So I added a checkbox. (DefaultOpt). If the box is checked the formula is restored into the cells in the array. The following code seems to work. (But suggestion for any improvement is welcome. I am sort of green at Excel/VBA) ---- Private Sub defaultOpt_Click() For i = 15 To 28 ActiveWorkbook.Worksheets("Model 2").Cells(i, 4).Formula = "=FORMULA HERE" end sub ---- However, I also want to make sure that, if the value of a cell in the array is changed, the box should become unchecked. Any suggestion how I proceed to do this? Thanks in advance, pac |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Manual Input/Calculation in Same Cell | Excel Discussion (Misc queries) | |||
Cell Reference VS. Manual Input? | Excel Worksheet Functions | |||
Can't toggle (or display) formula bar | Excel Discussion (Misc queries) | |||
Manual Input During Macro Execution | Excel Programming | |||
Toggle Control & Formula | Excel Programming |