Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Is it a formula
Quick question.
Is there a VBA command that tests the activecell to see if it contains a formula as opposed to actual text or number? I've found tests for errors, dates, numbers, text etc. You can test for "=" as it tests the value of the cell. Prob really simple but I'm baffled. Cheers Giz |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Is it a formula
On Thu, 23 Nov 2006 06:45:02 -0800, Gizmo63
wrote: Quick question. Is there a VBA command that tests the activecell to see if it contains a formula as opposed to actual text or number? I've found tests for errors, dates, numbers, text etc. You can test for "=" as it tests the value of the cell. Prob really simple but I'm baffled. Cheers Giz Function HasFormula(cell) HasFormula = cell.HasFormula End Function --ron |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Is it a formula
Cheers Ron,
Sorted. I was expecting an 'IS' test (ISDATE, ISERROR etc) not a 'HAS' test. "Ron Rosenfeld" wrote: On Thu, 23 Nov 2006 06:45:02 -0800, Gizmo63 wrote: Quick question. Is there a VBA command that tests the activecell to see if it contains a formula as opposed to actual text or number? I've found tests for errors, dates, numbers, text etc. You can test for "=" as it tests the value of the cell. Prob really simple but I'm baffled. Cheers Giz Function HasFormula(cell) HasFormula = cell.HasFormula End Function --ron |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Is it a formula
On Fri, 24 Nov 2006 04:43:02 -0800, Gizmo63
wrote: Cheers Ron, Sorted. I was expecting an 'IS' test (ISDATE, ISERROR etc) not a 'HAS' test. Glad to help. --ron |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Reusing formula | Excel Discussion (Misc queries) | |||
Dynamic Range with unused formula messing up x axis on dynamic graph | Charts and Charting in Excel | |||
Match then lookup | Excel Worksheet Functions | |||
Formula Problem - interrupted by #VALUE! in other cells!? | Excel Worksheet Functions | |||
Formula checking multiple worksheets | Excel Worksheet Functions |