I just came across a quirk and have no clue why this is happening - I'm using Excel 2010 and have the following situation:
- I have 2 sheets - An "input" sheet and a "save" sheet
- Save sheet is protected; input sheet is not
- I have a VBA Macro that un-protects the save sheet, copies the data across between the 2, then re-protects it
- When this macro runs, the input sheet (which was never protected) now has the tab key not working (cannot tab between cells).
To replicate this situation easily, I created a new blank workbook and did the following:
- Password protected
Sheet2
with the password "Test" Put in the following simplistic VBA sub:
Sub WeirdQuirk() Sheets("Sheet2").Unprotect Password:="Test" Sheets("Sheet1").Range("A1").Copy Sheets("Sheet2").Range("B1") Sheets("Sheet2").Protect Password:="Test" End Sub
When I'm in Sheet1
and run this, afterwards the Tab key is no longer working in the sheet.
Any thoughts on why this is happening / how to fix it?