It's driving me nuts! I can grab values that are static values, and most that have values derived from formulas. It seems like the "IF" statement really screws things up.
Not true about the "IF" it works fine when I tested it...
Duh...its the reference to the other worksheet that is messing it up....geeze...now what to do?!?!?
Drats...that's not it either!! I took out all the references to other sheets...still errors.
What I am finding is that for some reason when QM initializes the app it does not load the Add-ins.
NETWORKDAYS is part of the Analysis ToolPak which doesn't seem to be loading through the QM Excel.Application app._create.
When I set visibility to TRUE, the program stays open after the error.
If I choose Tools->Add-ins then disable Analysis ToolPak, then re-enable Analysis ToolPak, and then go to edit one of the error'd cells, everything goes back to normal. If I do not disable and re-enable Analysis ToolPak...nothing works to fix it.
Is it possibly something in the way QM calls for the Excel application to run?
Nope...same problem. I was mistaken. Very strange, must just be one of those things I'll have to learn with in life. I'll test on other computers just to see if there is something strange with the way Excel is installed on this computer.
Yes, it can be because the network folders probably are not mapped to H: and P: in QM process, because QM process runs as admin. There are separate mappings for standard user and admin.