Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Cell Reference 1

Status
Not open for further replies.

simoncpage

Programmer
Apr 4, 2002
256
GB
Hi all, How can I check if a cell contains a value or a formula?

Thanks
Simon
 
There may be a more elegant way, but a simple way is to check for the equals sign:

if left(activecell.formula,1)="=" then
...it's a formula...
else
...it's just a value
end if

Rob
[flowerface]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top