Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
cell value
How would I chec if a particular cell contains a formula
or value. If teh cell contains the value, I would like to exit the sub, but if there is a formula I would like the procedure to run. Thanks in Advance |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
cell value
Try this Tim
Sub test() If Range("D6").HasFormula Then MsgBox "formula" Else MsgBox "not" End If End Sub -- Regards Ron de Bruin (Win XP Pro SP-1 XL2002 SP-2) www.rondebruin.nl "Tim" wrote in message ... How would I chec if a particular cell contains a formula or value. If teh cell contains the value, I would like to exit the sub, but if there is a formula I would like the procedure to run. Thanks in Advance |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options | Excel Discussion (Misc queries) | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing | Excel Discussion (Misc queries) | |||
Populate a cell if values in cell 1 and cell 2 match cell 3 and 4 | Excel Worksheet Functions | |||
How to create/run "cell A equals Cell B put Cell C info in Cell D | Excel Discussion (Misc queries) | |||
Question: Cell formula or macro to write result of one cell to another cell | Excel Programming |