Mysterious appearing Worksheets and Modules. Codes transferred to New Modules
(......Edit : around End of July 2016:
Wierdo 1 SOLVED
![]()
![]()
Wierdo 2 Not jet
http://www.excelforum.com/excel-prog...ml#post4440076 .....)
Hi,
This is weird - possibly a strange Bug?
Question:
Has anyone seen anything like this before?. Can anyone shed any light on what has happened?
So this happened:
A couple of weird things happened regarding mysterious Worksheet in two separate Files. I think it happened at about the same time. I did not notice exactly when it happened.
Weirdo 1
In this File
https://app.box.com/s/i0tfdc96xe2h2sacrpf1jb18nbz8wmdb
A new Worksheet suddenly appeared. It has the name Makro1 ( I am in German Excel: Makro is the name for Macro in English). This Worksheet does not appear in the VBAProject Window. Further if I right click on the tab, the option to show code does not appear ( Or rather it is there but is shown in a lighter shade than the other options and does not respond to a click on it. )
I appear to be able to use the Worksheet itself “normally” as an Excel Worksheet
If I run a short code to list out all Worksheets in this File, then this Worksheet “Makro1” does not appear in that list
I saved this file for prosperity and to share here, and then I deleted that rogue Worksheet, resaved under a different name and went on to do a large amount of work with the File with no noticeable ill effects, and the problem did not seem to re appear.
_......
Weirdo 2
In this File
https://app.box.com/s/b8duyzaw2bmokbezv1kwrbhngfuq9th3
I had originally 6 Worksheets with these Code Names and (Names)
Tabelle7(Head)
Tabelle8(DB)
Tabelle9(Leith2)
Tabelle10(Tabelle3MiscTidies)
Tabelle11(FoodsLookUpTable)
Tabelle12(Empty)
( The list above I got from a short code which lists out all worksheet Code names and (Names) in the Immediate ( Ctrl+G ) Window)
All Worksheet code Modules had working code in them
_2a) Suddenly 6 new “Modules” Appeared. ( I have no idea why !! ). They have the Code Names Tabelle1, Tabelle2, Tabelle3, Tabelle4, Tabelle5, Tabelle6. ( They do not appear in a list produced by the code I used above to list all Worksheet Code names and (names) ). You can see these mysterious Modules in the VBAProject Window:
MysteriousModules.JPG
Note also in the above screenshot there seems to be an extra “DieseArbeitsmappe1” Module , ( DieseArbeitsmappe1 is German for “ThisWorkbook1” ). As far as I knew, you typically have just one This Workbook Code Module )
_...
_2b) The codes that were in my original Worksheet Code Modules were transferred into these new Modules. ( Not by me !! – I have no idea how that happened! ). My original Worksheet Code modules were then left empty. ??
_2c) The code will not run from these new mysterious Modules. I get “Run-time error 429; ActiveX component can't create object.”
_2d) If I copy the codes back to where they were “stolen” from ( or to any of the original Worksheet Code modules or Normal Code Modules for that matter ) , then the codes work as before.
_2e) So I guess my way forward is simply to transfer all codes back to where they were “stolen” from.
Then I should maybe delete these weird new Modules. – The problem is I do not seem to be able to delete them ?? – They have the same symbol as a “This Workbook” Module. I do not know if that is significant
_.........................
Basically my main concern , and what I am asking in this Thread is
What the hell is going on??. Or what happened. Can anyone shed any light on what may have happened. Any advice on the best way forward? Are these new Modules / Worksheets harmless? Anyone ever occurred anything similar?. I am mostly concerned that some Bug is doing weird things. So far I have only seen this on a couple of files.
Alan
Bookmarks