Hi all,
I have the very simple function below - it works fine when called from VBA (?ccf(range("A1:B10")), but not from worksheet "=ccf(A1:B10)" and I don't get why...
anyone any great idea?Please Login or Register to view this content.
Hi all,
I have the very simple function below - it works fine when called from VBA (?ccf(range("A1:B10")), but not from worksheet "=ccf(A1:B10)" and I don't get why...
anyone any great idea?Please Login or Register to view this content.
No one...?
The function detects if a cell is formatted as "bad" via conditional formatting (so the pink interior color, with red font) and counts the number of occurrences.
I really don't understand why it works from the immediate window, but not from a worksheet.
Read this and you'll know why it doesn't work in worksheet UDF but does in Immediate window.
It's DisplayFormat that's causing the isuue here.
https://docs.microsoft.com/en-us/off....displayformat
Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks