cvincent
Board Regular
- Joined
- Aug 28, 2011
- Messages
- 66
I have an Excel 2010 worksheet, with a macro to open Word 2010 and merge the data into a letter. It works fine the first time I use it after opening Excel. But after that, it won't work again until I close out Excel and re-open. Any ideas why this is happening?
Even though Word is not open, the error message reads:
Error has occurred: The Microsofe Office Access database engine cannot open or write to the file. It is already opened exclusively by another user, or you need permission to view and write its data.
Run time error 4198: Command failed
The macro opens the merge document, but does not merge. It hangs up here:
wordMailMerge.OpenDataSource Name:=excelPath, SQLStatement:="SELECT * FROM `'ON HOLD$'`"
Thank you for your assistance.
Even though Word is not open, the error message reads:
Error has occurred: The Microsofe Office Access database engine cannot open or write to the file. It is already opened exclusively by another user, or you need permission to view and write its data.
Run time error 4198: Command failed
The macro opens the merge document, but does not merge. It hangs up here:
wordMailMerge.OpenDataSource Name:=excelPath, SQLStatement:="SELECT * FROM `'ON HOLD$'`"
Thank you for your assistance.