we are trying to use the following IF len code to identify cell d5(in currency format) when d5 equals $0.00 we want the msgbox to pop up.
Please Login or Register to view this content.
we are trying to use the following IF len code to identify cell d5(in currency format) when d5 equals $0.00 we want the msgbox to pop up.
Please Login or Register to view this content.
Last edited by vasto; 09-01-2009 at 01:51 PM.
Why not test the value ?
If the $ is applied via formatting it won't affect the underlying .Value of the cell (ie 0 formatted as $0.00 has a Len of 1 not 5) if you want to test Len of cell content post-formatting you would need to test against the .Text property.Please Login or Register to view this content.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks