I'm using a file "count.xlsm" in which our inventory employee registers his counts. I created a procedure that filters all results on difference and reasoncodes, and selects the resulting rows of the table. That all works properly.
There is another workbook that is called "Report.xlsm" and contains two sheets: "Summary2012" and "Report". The second sheet contains a selection of the data on the first sheet and is protected except for the columns in which users have to do input. The first sheet is not protected.
The selection made in the first workbook should be pasted to the (not protected) summary2012 sheet of the Report workbook.
The code I use for that is:
and then follows the code to direct to the first empty row as the paste destination.Please Login or Register to view this content.
If I run this macro, it results in error 1004 which refers to ProtectedView workbooks. How can I avoid that the workbook opens in protected view?
What code do I need to find out whether the workbook is already open, so I can step over the workbook.open command, since that will also result in an error.
Sjors
Bookmarks