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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Test Excel cell formula/number

Status
Not open for further replies.

jozino01

Technical User
Apr 25, 2003
257
CA
Hi,
how can I test Excel cell - if it contains a formula or plain number?
 
Nice, Skip. I was gonna suggest:
Code:
Select Case Left(CellObject.Formula, 1)
Case "=", "+", "-"
   ' Is a formula - do whatever here
Case Else
   ' Not a formula
End Select
but I think yours is a bit better.

VBAjedi [swords]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top