Hi All
I don't write allot of VBA script so there may be a simple answer for this.
I have a script that defines a Range. EG Range("D2:D5000"). The script is set to run on Opening of the document or on Cell changes. This works without an issue if I have the document open or open the document directly. We use a third party app to open the document which opens it in Protected Mode and you need to click Enable Edits.
When you open the document using the Third party app, and after you click enable edits you get the error. Method columns of object_Global Failed. If you stop the script and run it again it works without issue.
If you know why this would only be an issue when opening the document in Protect mode or a solution to get around this, please let me know.
I am assuming it's something to do with not having sheet focus but don't really know.
Thanks for your time in Advance.
Craig