Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Detect if a cell value is a formula

Hello world,

I would like to make a VBA macro detect if a certain cell contains a fixed
value or a formula.

My first idea is to compare the ".Value" and ".Formula" properties and
declare regard it as a formula if they are different. Is this a good
approach or do you suggest a better solution?

Jens

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Detect if a cell value is a formula

?[A1].HasFormula

--
Kind regards,

Niek Otten

Microsoft MVP - Excel

"Jens Lenge" wrote in message
...
Hello world,

I would like to make a VBA macro detect if a certain cell contains a fixed
value or a formula.

My first idea is to compare the ".Value" and ".Formula" properties and
declare regard it as a formula if they are different. Is this a good
approach or do you suggest a better solution?

Jens



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Detect if a cell value is a formula

?[A1].HasFormula

Thank you!
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula to detect color? [email protected] Excel Worksheet Functions 9 November 8th 06 12:53 AM
Detect Presence Formula Ken Excel Worksheet Functions 6 September 12th 06 06:43 PM
Need Formula to detect duplicate invoices XYZ via OfficeKB.com Excel Discussion (Misc queries) 1 October 11th 05 10:22 PM
How to detect if a cell is formula Soo Cheon Jheong Excel Programming 1 May 30th 04 11:16 AM
How to detect if a cell is formula Frank Kabel Excel Programming 0 May 24th 04 07:48 AM


All times are GMT +1. The time now is 12:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"