rubberduck-vba / Rubberduck

Every programmer needs a rubberduck. COM add-in for the VBA & VB6 IDE (VBE).
https://rubberduckvba.com
GNU General Public License v3.0
1.91k stars 299 forks source link

Code Explorer doesn't update after saving new workbook (Book2) with new name (MyWB) #4789

Open SmileyFtW opened 5 years ago

SmileyFtW commented 5 years ago

Version 2.4.0.4511 OS: Microsoft Windows NT 10.0.17134.0, x64 Host Product: Microsoft Office x86 Host Version: 16.0.11231.20130 Host Executable: EXCEL.EXE

Description

The CE still shows VBAProject (Book2) in the code explorer (CE) pane after saving a new workbook with a new name.

To Reproduce With a new workbook ("Book2") opened and the VBE open, add a module (std, cls, or userform) Save the workbook with a new name ("MyWB") Refresh RD

Expected behavior The CE would show VBAProject (MyWB) instead of VBAProject (Book2)

Screenshots I have saved what was Book2 as MyWB and refreshed RD, yet the CE still shows Book2: image

Logfile NA

Additional context

SmileyFtW commented 5 years ago

I just noticed that the behavior isn't limited to a new workbook. It appears that anytime a SaveAs operation is done (which is really what the new book save appears to be) the CE doesn't update the file name at the top of the tree.

MDoerner commented 4 years ago

There is more info in the discussion in the duplicate above.