P.S. I have tested the code I just sent you in Excel and
it does work. I inserted the code into a Module for the
Workbook. I put the function header in the declarations. I
then called the function from a subroutine I run at
startup and inserted the value into a cell in my
spreadsheet and it works just fine.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.