SOLVED

VBA Not Visible after Microsoft Error and Repair Completed

%3CLINGO-SUB%20id%3D%22lingo-sub-1924298%22%20slang%3D%22en-US%22%3EVBA%20Not%20Visible%20after%20Microsoft%20Error%20and%20Repair%20Completed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1924298%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20using%20the%20latest%20version%20of%20Microsoft%20Office%20365%20ProPlus%20where%20I%20created%20a%20Dashboards%20of%20sorts%20in%20.xlsb%20format.%20Which%20I%20use%20all%20of%20the%20time%20without%20problems.%20This%20file%20has%20worked%20great%20up%20until%20today.%20When%20I%20open%20it%20I%20receive%20an%20error%20stating%20%22Can't%20Find%20Project%20or%20Library%22.%20I%20do%20no%20know%20this%20is%20referencing%20a%20missing%20Reference%20file%20in%20VBA%20but%20when%20I%20open%20the%20VBA%20Editor%20the%20windows%20become%20frozen%20in%20the%20editor%20and%20no%20codes%20are%20visible.%20When%20I%20select%20Tools%20Reference%20nothing%20happens.%20I%20have%20had%20this%20happen%20on%20a%20different%2C%20unrelated%20file%20about%20a%20month%20ago%20and%20a%20quick%20repair%20fixed%20the%20issue.%20I%20just%20completed%20the%20repair%20and%20the%20issue%20still%20exist.%20My%20next%20step%20is%20online%20repair.%20Before%20I%20do%20this%2C%20I%20simply%20do%20not%20understand%20what%20went%20wrong%2C%20when%20nothing%20changed.%20Is%20there%20a%20fix%20for%20this%20that%20someone%20could%20let%20me%20in%20on.%20Everyone%20here%20knows%20how%20critical%20it%20is%20that%20when%20presenting%20data%20to%20clients%2C%20that%20in%20order%20for%20them%20to%20have%20confidence%20in%20your%20data%20it%20must%20be%20correct%20and%20without%20error.%20Well%20it%20just%20so%20happens%20that%20when%20I%20was%20presenting%20this%20in%20a%20meeting%20today%20is%20when%20the%20file%20decided%20to%20go%20haywire.%20My%20company%20is%20beginning%20to%20invest%20heavily%20in%20AI%20software%20and%20once%20again%20this%20does%20not%20look%20good%20on%20me%20or%20Excel.%20It%20just%20bolsters%20up%20AI%20Software%20even%20more%20(which%20will%20eventually%20replace%20us%20data%20analysts).%20I%20know%20the%20folks%20at%20Excel%20are%20working%20hard%20so%2C%20I%20am%20not%20miffed%20at%20them%20but%20Excel%20has%20got%20to%20get%20better.%20I%20have%20so%20many%20examples%20of%20this%20type%20of%20stuff%20happening%20more%20often%20than%20not.%20Not%20just%20me%20but%20my%20other%20Data%20Analysis%20partners%20as%20well.%20Excel%20needs%20to%20hire%20some%20of%20its%20old%20school%20retired%20programmers%20back%20and%20sort%20the%20messes%20out%20and%20teach%20the%20new%20programmers.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1924298%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1924483%22%20slang%3D%22en-US%22%3ERe%3A%20VBA%20Not%20Visible%20after%20Microsoft%20Error%20and%20Repair%20Completed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1924483%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F612943%22%20target%3D%22_blank%22%3E%40heylookitsme%3C%2FA%3E%26nbsp%3BFurther%20Investigation%20(opened%20in%20Safe%20Mode)%20allows%20me%20to%20open%20and%20select%20all%20of%20the%20data%20in%20the%20VBA%20Editor%20(which%20I%20quickly%20saved%20to%20word).%20Tools%2C%20Reference%20shows%205%20Checked%20Ref%20Files%3A%20out%20of%20those%205%20files%20the%20Locations%20of%20them%20are%20accurate%20and%20good.%20No%20Blank%20or%20unusual%20file%20references%20showing.%20However%2C%20when%20I%20view%20the%20Object%20Library%20Window%20there%20is%20a%20selection%20for%20VBAProject%20which%20is%20not%20listed%20in%20my%20Library%20Reference%20and%20the%20location%20of%20the%20file%20is%20showing%20the%20same%20as%20this%20file%20with%20this%20file%20being%20its%20reference.%20So%2C%20this%20is%20what%20is%20causing%20the%20error.%20Now%20how%20to%20remove%20a%20Reference%20Library%20that%20is%20not%20showing%20in%20your%20Refence%20toolbox%20and%20how%20to%20locate%20and%20add%20the%20VBAProject%20Reference%20so%20it%20can%20be%20added%20back%20into%20the%20reference%20library%20from%20the%20correct%20location.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I am using the latest version of Microsoft Office 365 ProPlus where I created a Dashboards of sorts in .xlsb format. Which I use all of the time without problems. This file has worked great up until today. When I open it I receive an error stating "Can't Find Project or Library". I do no know this is referencing a missing Reference file in VBA but when I open the VBA Editor the windows become frozen in the editor and no codes are visible. When I select Tools Reference nothing happens. I have had this happen on a different, unrelated file about a month ago and a quick repair fixed the issue. I just completed the repair and the issue still exist. My next step is online repair. Before I do this, I simply do not understand what went wrong, when nothing changed. Is there a fix for this that someone could let me in on. Everyone here knows how critical it is that when presenting data to clients, that in order for them to have confidence in your data it must be correct and without error. Well it just so happens that when I was presenting this in a meeting today is when the file decided to go haywire. My company is beginning to invest heavily in AI software and once again this does not look good on me or Excel. It just bolsters up AI Software even more (which will eventually replace us data analysts). I know the folks at Excel are working hard so, I am not miffed at them but Excel has got to get better. I have so many examples of this type of stuff happening more often than not. Not just me but my other Data Analysis partners as well. Excel needs to hire some of its old school retired programmers back and sort the messes out and teach the new programmers.

2 Replies

@heylookitsme Further Investigation (opened in Safe Mode) allows me to open and select all of the data in the VBA Editor (which I quickly saved to word). Tools, Reference shows 5 Checked Ref Files: out of those 5 files the Locations of them are accurate and good. No Blank or unusual file references showing. However, when I view the Object Library Window there is a selection for VBAProject which is not listed in my Library Reference and the location of the file is showing the same as this file with this file being its reference. So, this is what is causing the error. Now how to remove a Reference Library that is not showing in your Refence toolbox and how to locate and add the VBAProject Reference so it can be added back into the reference library from the correct location. 

Best Response confirmed by heylookitsme (Occasional Contributor)
Solution

@heylookitsmeSo for anyone with this issue here is the fix: I opened tools and selected VBAProject and then changed the name to something else. This caused it to drop that bad file reference object that was just pointing back to the same workbook. Not sure how it happened.