I'm trying to create the following macro to automate calculations in a spreadsheet.
Enter certain value in excel cell... this value then gets passed to a Public Function (as a Variant/String, right?)
Within the public function, the looped find method (from Help files) is used to find this passed variable in another worksheet.
The problem is that if something is passed to the function, the find method always finds nothing. At first I thought, maybe, there was some discrepancy between what was being passed and the results I'd be searching through, but no... even if I search for an internally defined variable (not the one I am passing) it fails to work... Remove the passing, and bham, it works like a charm...
Why would this be the case? is the Find method only for non-public functions? If so, or whatever, is there another way that I might do this?
Thanks a lot!
0 · ·