Formula

  • Thread starter Thread starter Jenny
  • Start date Start date
J

Jenny

How would I use code to identify a formula (vs. a plain
input number) in a cell.

Thanks.
 
Jenny,

Use the HasFormula property. For example

If Range("A1").HasFormula = True Then
Debug.Print "range has formula"
Else
Debug.Print "range doesn't have formula"
End If


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

HELP!!! I can't set formula to cell 1
IF Look Up Formula 1
i to = column in Formula 19
where am I? 3
Finding Next Largest Number Based on Criteria 3
Data Table Issues 5
Excel VBA 1
Use formula from cell in UserForm? 2

Back
Top