I tried this:Opened a new wkbkdragged sheet 3 tab before sheet 2Went into the VBA EditorThe codenames and names are nowSheet1 (Sheet1)Sheet2 (Sheet3)Sheet3 (Sheet2)It looks to me as though the codenames have changed.