Hello,
I'm encountering this strange problem that my macro does not work on only one of my protected sheets, but it works perfectly on other protected sheets. I only check the first two boxes in the protect dialog box (i.e. 'select locked cells' and 'select unlocked cells'). All other boxes are unchecked. And I apply a password.
This is specifically related to my post here and the "Export" macro: Is it possible to implement an export/import feature for the unlocked cells in my Excel file? (Through VBA?)
After several tries, I believe I was randomly able to get the macro to work on all protected sheets in my smaller workbook. All I did was to delete all macros and rewrite everything. I pasted them into my Visual Studio Code, and then I repasted them back into my file after saving, closing, and reopening it. So I got excited and I thought I this should work on my other similar files.
Then I applied the macro to my larger file which is identical to the smaller one, but has larger capacity (for more samples). And now no matter what I do, I cannot get the Export macro to work on the "Plates-Input" sheet, which has the bulk of the data (~55k unlocked/unhidden cells) in this file. Tha's why I made this post. (So if I leave this sheet unprotected, my output CSV file is huge (1.6MB). If I leave this sheet protected, Export only extracts the unlocked cells from the other two sheets and the resulting CSV file in 24.1KB )
I tried several tricks that found online, including trying to unprotect the Plates-Input sheet at the beginning of the Export macro and then reprotecting it at the end. But nothing worked, although they may have not worked for wrong syntax or location (line) as I'm not very VBA-literate
How can I figure out what's different between my three protected sheets? I mean what "relevant" settings can possibly be different?
I don't know what's happening, but it appears to me that Excel remembers "things" in "some" location? And whatever/wherever this is, needs to be cleared/reset somehow?
Any input is highly appreciated.
I'm encountering this strange problem that my macro does not work on only one of my protected sheets, but it works perfectly on other protected sheets. I only check the first two boxes in the protect dialog box (i.e. 'select locked cells' and 'select unlocked cells'). All other boxes are unchecked. And I apply a password.
This is specifically related to my post here and the "Export" macro: Is it possible to implement an export/import feature for the unlocked cells in my Excel file? (Through VBA?)
After several tries, I believe I was randomly able to get the macro to work on all protected sheets in my smaller workbook. All I did was to delete all macros and rewrite everything. I pasted them into my Visual Studio Code, and then I repasted them back into my file after saving, closing, and reopening it. So I got excited and I thought I this should work on my other similar files.
Then I applied the macro to my larger file which is identical to the smaller one, but has larger capacity (for more samples). And now no matter what I do, I cannot get the Export macro to work on the "Plates-Input" sheet, which has the bulk of the data (~55k unlocked/unhidden cells) in this file. Tha's why I made this post. (So if I leave this sheet unprotected, my output CSV file is huge (1.6MB). If I leave this sheet protected, Export only extracts the unlocked cells from the other two sheets and the resulting CSV file in 24.1KB )
I tried several tricks that found online, including trying to unprotect the Plates-Input sheet at the beginning of the Export macro and then reprotecting it at the end. But nothing worked, although they may have not worked for wrong syntax or location (line) as I'm not very VBA-literate
How can I figure out what's different between my three protected sheets? I mean what "relevant" settings can possibly be different?
I don't know what's happening, but it appears to me that Excel remembers "things" in "some" location? And whatever/wherever this is, needs to be cleared/reset somehow?
Any input is highly appreciated.