I created a VBA macro in Word 2007 that determines if Excel and a specific Excel workbook is open, opens the workbook (and Excel if needed), then performs various tasks in the workbook.
Under Tools/References, I checked Microsoft Word 12.0 Object Library, Microsoft Office 12.0 Object Library, and Microsoft Excel 12.0 Object Library. The macros ran just fine. I then recently moved to a new PC and Office 2010 and neither of the commands below produces results - appExcel continues to be Nothing.
Set appExcel = GetObject(, "Excel.Application")
Set appExcel = CreateObject("Excel.Application")
I have searched high and low for specific info on how to remedy this, but to no avail. I've found various info that points to either both the 2007 and 2010 dlls being registered, or the one that is necessary not being registered, but nowhere can I find instructions on how to register or unregister either. Nor can I find clearly the file names involved. I'm hoping someone in Stack Exchange can help!