Excel function

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to check automatically if a cell contains a formula or a value.
Objective: execute a macro to replace the formula by its value or to put
back the formula in the cell
 
If Range("A1").HasFormula Then
'do something


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Hi.
Objective: execute a macro to replace the formula by its value or to put
back the formula in the cell

Which is it, replace the formula with it's value or put the formula back in
the cell. What is the criteria for doing each?

Mike
 

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

Back
Top