• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Created a Macro to copy from a closed or read only workbook

Larry T.

New Member
Hi Guys,

I created a macro to go to a sheet within a workbook and copy an area of information. My problem is: It works only if the file is NOT occupied. If someone is in the file I get a run error. Can someone assist in how to avoid and pull data if the workbook if open or closed?

Thanks a bunch
 
@Larry T.
Have You test link?
='[2ndBook.xlsx]Sheet1'!$A$1
All depends, how large range do You need...
=INDEX('[2ndBook.xlsx]Sheet1'!$A$1:$D$4;D1;D2)
Ideas ... Questions?
 
Last edited:
Thank you for the quick response. So, you are suggesting a more reliable process would be to INDEX instead of using a macro?
 
Hi !

If the workbook is in shared mode, there are many restrictions
even within a VBA code …
 
Back
Top