Solved

Remove erroneous worksheets/code from VBA Editor

Posted on 2016-07-25
6
35 Views
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)
0
Comment
Question by:Karen Schaefer
  • 2
  • 2
  • 2
6 Comments
 
LVL 46

Expert Comment

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

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
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 41728688
Can you attach your workbook?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 2

Accepted Solution

by:
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
0
 
LVL 2

Expert Comment

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

Author Closing Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
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…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

932 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now