ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Is there a function to determine whether a cell contains a formul. (https://www.excelbanter.com/excel-worksheet-functions/6849-there-function-determine-whether-cell-contains-formul.html)

Christo Kriel

Is there a function to determine whether a cell contains a formul.
 
I need to use an Excel function to check whether a cell contains a formula. I
want to design a spreadsheet test for my class which checks itself and gives
feedback on whether the answers are correct.

Frank Kabel

Hi
try the following UDF:
public function is_formula(rng as range)
is_formula=rng.hasformula
end function



--
Regards
Frank Kabel
Frankfurt, Germany

"Christo Kriel" <Christo schrieb im
Newsbeitrag ...
I need to use an Excel function to check whether a cell contains a

formula. I
want to design a spreadsheet test for my class which checks itself

and gives
feedback on whether the answers are correct.




All times are GMT +1. The time now is 02:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com