Remove erroneous worksheets/code from VBA Editor

Posted on 2016-07-25
Last Modified: 2016-07-26
Looking for a method/addins that will clean up my vba, removing all erroneous codes and sheets that are still visible in VBA Editor, however, no longer exists in the workbook.  (ie ThisWorkbook1, thisWorkbook2)
Question by:Karen Schaefer
  • 2
  • 2
  • 2
LVL 46

Expert Comment

by:Martin Liss
ID: 41728601
Did you try quitting and restarting Excel?

Author Comment

by:Karen Schaefer
ID: 41728683
yes and stays there.  I know this has been an issue in the past, and I have seen some addins that can be used, unfortunately I am unable to download these to my work system - do not have admin rights
LVL 46

Expert Comment

by:Martin Liss
ID: 41728688
Can you attach your workbook?
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.


Accepted Solution

Simulog earned 500 total points
ID: 41729351
I had this issue a few years back, any time the workbook had been with a colleague who had a corrupt Excel installation.

Back then the solution was to save as Excel95 - close - open - save as Excel2003. This meant that you loosed some stuff from Excel2003

The modernized version would be to export all VBA, save the workbook as an XLSX (no macros), open it, import back all VBA and save it as an XLAM again.

Good Luck

Expert Comment

ID: 41729378
Sorry, the last should obviously be "save as an XLSM again".

Author Closing Comment

by:Karen Schaefer
ID: 41730170
Thanks that did the trick.

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question