I'm running into the following error when executing the following line from VBA (Access):
Set wd = CreateObject("Word.Application")
I found the following link, but did not find it useful: http://support.microsoft.com/kb/828550
Things I've Tried
- Repair installation of Office from Control Panel > Programs and Features
- Uninstall MS Word, re-install
- Tried
Dim wd As Object
instead ofDim wd as Word.Application
- Manually run Word.
- Run
winword.exe /RegServer
in Administrator command prompt. Did not run silently, merely opened Word. - Examine the LocalServer32 key under the CLSID {000209FF-0000-0000-C000-000000000046}. Initially was missing. After re-install Word, the CLDID was there but LocalServer32 key is missing.
- Run
winword.exe /automation
. Merely starts Word. - Run
winword.exe
as Administrator. - Run
access.exe
as Administrator.
Relevant (maybe)
- Windows 8 x64
- Office 2007
- C:\Program Files (x86)\Microsoft Office\Office12
- A preview version of Office 2010 was pre-installed.
- Launching Excel works with automation and VBA.
- asycfilt.dll file version: 6.2.9200.16384, date: 7/25/2012 11:05pm
- oleaut32.dll file version: 6.2.9200.16384, date: 7/25/2012 11:06pm
- olepro32.dll missing
- stdole2.tlb no file version, date: 7/25/2012 10:34pm
- McAffee anti-virus