hatman
Well-known Member
- Joined
- Apr 8, 2005
- Messages
- 2,664
So I had a colleague ask me to come help him with some code that was firing when he closed a workbook that he inheritted. The first thing that struck me as odd was that is was a .xlsx, not a .xlsm. Ipso fatso: no VBA code in the book anywhere. First I had him check ThisWorkbook.Excel4MacroSheets.count, which returned zero. This stumped me, so just on a hunch, I had him check the Name Manager Dialog. Guess what: there were two defined names called Aut
pen and Auto_Close, each linked to a cell on a worksheet, and in each cell was a filepath pointing to an external file (.dbq???? isn't that an AutCad query file?). I had him delete these two Names from the dialog, and it fixed the problem. But outside of the Get.Cell workaround, I didn;t know this usage existed... I played with duplicating it in a new workbook, just for kix, and I'm not getting anything. Can anybody shed some light on this?
