Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
yep... the formula evaluates to the value,
setting either destroys the other. you probably want to set then number format ..NumberFormat = "[<0.1]""negligible"";General" keepITcool < email : keepitcool chello nl (with @ and .) < homepage: http://members.chello.nl/keepitcool (David Wakeling) wrote: Hello, Could someone tell me how to change the value of a cell, without also changing the formula? The following code illustrates my problem: Dim r As Range Application.EnableEvents = False Set r = Range("A1") r.Formula = "= 42 / 100000" r.Value = "negligible" MsgBox "r.Formula = " & r.Formula & ", r.Value = " & r.Value Application.EnableEvents = True Assignment to the value seems to destroy the formula. Many thanks, David Wakeling |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
cell value to change formula | Excel Discussion (Misc queries) | |||
copy formula down a column and have cell references change within formula | New Users to Excel | |||
How to change a formula in one cell and have these changes appear | Excel Worksheet Functions | |||
How to change a formula in one cell and have these changes appear | Excel Worksheet Functions | |||
change a cell formula | Excel Programming |