Formula vs Constant

G

Guest

Is there a formula that will check a cell to determine if it is a constant (123) vs a formula (=a1)?
 
G

Gord Dibben

Jonathan

User Defined Function

Function IsFormula(cell)
Application.Volatile
IsFormula = cell.HasFormula
End Function

Gord Dibben Excel MVP
 
F

foolio

May or may not be useful for what you are trying to do.... but you coul
always hit Ctrl ~ to manually see what is a constant and what is
formula.

Or you could copy the row to another row. Do a replace on just that ro
and replace "=" with "FORMULA IS " or something along those lines
 
D

Dave Peterson

Since you're passing the cell, I think you could drop the application.volatile
line.
 

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

Top