Hey,
I am trying to open a .dot file using a macro in Excel 2007.
Check out Microsoft's website for an example.
The code breaks at:
I get the following error:
I believe the code works fine in 2003, but not in 2007.
In order to get it to work, I need to open the template.dot file first and then run the macro.
I'm using the following references:
- Visual Basic For Applications
- Microsoft Excel 12.0 Object Library
- OLE Automation
- Microsoft Office 12.0 Object Library
- Microsoft Forms 2.0 Object Library
- Microsoft Word 12.0 Object Library
Any ideas?
Bookmarks