Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 6th, 2005, 05:40 PM
Registered User
 
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Automation error when using Access to start Word

I get an
Automation Error
Class Factory cannot supply requested class

on the following line

Set appWord = CreateObject(Class:="word.application")

I can use VBA's Object Browser to open the Word class library and then find the Application class in the library. So what is automation looking for that is different than in the class library?

I am working with Office 2003 and have references to the Microsoft 11.0 libraries for Word, Access and Office. I also have references to the VBA, Ole Automation, and ADO 2.1 libraries.
 
Old August 8th, 2005, 03:07 AM
Friend of Wrox
 
Join Date: Jul 2005
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I use this:

Dim appWord as Word.Application

Set appWord = CreateObject("Word.Application")


HTH...






Boyd
"Hi Tech Coach"
Access Based Accounting/Business Solutions developer.
http://www.officeprogramming.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Automation TheNoobiest Beginning VB 6 1 November 9th, 2007 03:11 PM
Automation of Word using C# without Reference ramk_1978 C# 0 November 7th, 2006 06:50 AM
Access to Word Mail Merge Automation kareltje Access VBA 6 June 9th, 2005 04:54 AM
OLE Automation Access - Word william.murray Access 2 July 13th, 2004 07:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.