o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

CreateObject("Word.Application") generates error "0" -

It saddens me to report another error on which I need your much-appreciated help

A user of our app (XP, Word 2007) get's an error with number "0" and no description on CreateObject("Word.Application") in the following bit of code:

Code:
Private m_Word As Object   'Word is referenced using late-binding
'...
Set m_Word = CreateObject("Word.Application")
Of course, it works fine on all other systems. I'm clueless; couldn't find anything useful on VBForums. Anyone have an idea?

 

CreateObject("Word.Application") generates error "0" -
It saddens me to report another error on which I need your much-appreciated help A user of our app (XP, Word 2007) get's an error with number "0" and no description on CreateObject("Word.Application") in the following bit of code: Code: Private m_Word A


how can i pass data from textbox to word document in vb6 -
if somebody has a different code, it's accepted to see. what if i want to use this code: Private Sub cmdButtom_Click() Dim WordObj As Word.Application Set WordObj = CreateObject("Word.Application") Dim objWord As Word.Document Set objWord = WordObj.Documents.Open(FileName


CreateObject("Word.Application") -
Was a little unsure where to put this but never the less I am sure it will get moved if I am wrong...... anyways - I am running VB6 Professional with Office 2003 installed on the development machine. I included the reference to "Word 11.0 Object Library" and my CreateOb


Microsoft Word Object 8.0 -
I am trying to open word in windows 2000 vb enterprise edition, i added the ref and the lines In Declarations : Option Explicit Dim ObjWord as Word.Application And in Code: Set objWord = New Word.Application 'the error Eve


error opening word *resolved* -
hello, I'm making an application that generates a report. I openword and a template (.dot), then i fill the document with the data... everything is working fine. when MsWord is allready opened i get this error on the following line set objword = new word.application the err


Detecting, getting and piloting MS Word from a VB app -
In a VB6 application, I create an MS Word instance and pilot this application directly from the VB application. Using for that the following code : Dim objWord As Object Dim objBasic As Object Set objWord = CreateObject("word.application") Set objBasic = CreateObject


RESOLVED:Problem opening word template -
Hi I am trying to open a word tempelate from but allways get an error saying that the file is not found. My code is as follows: Dim WordObject As Word.Application Set WordObject = CreateObject("Word.Application") With WordObject .Documents.Open (App.Path


Word Application -
Hello everyone! I am Try to use Word Application In My VB Application and i get Run-time Error 5981. Dim X As Object Set X = CreateObject("Word.Application") X.Visible = False X.Documents.Add I am getting this Error in the ADD Command, Any idea?


Automation Error VB6 -
Hi I am using this code and it was working fine. Now all of a sudden it gives me an error "Runtime error -2147221163 Automation Error Interface not registered Does anyone know how to get rid of this error. This is the code. It is exporting data to MS WORD Dim oWo


[2005] To create Active X component to Web IIS -
Hi I have developed an application in ASP.NET that opens Word document on any event Here is the code Dim wdDoc, obj As Object obj = CreateObject("Word.application") wdDoc = obj.Documents.Add("C:\MyWordDoc.doc") wdDoc.Application.Visible = True It


Error when closing Word application after copy to clipboard -
I'm running the following VBA macro in Excel. The macro creates a Word application which opens an existing document, copies its contents to the clipboard. It then opens a new word application and pastes the clipboard contents into a new document. So far so good. But when I quit the


Interface not registered error -
Hi I am using this code and it was working fine. Now all of a sudden it gives me an error "Runtime error -2147221163 Automation Error Interface not registered Does anyone know how to get rid of this error. This is the code. It is exporting data to MS WORD Dim oWord A


Launch external app code problem -
Hi, I'm writing a small menu appn which will give the uses buttons to launch different programs with predefined templates. I have written the following code, which I think should work, but it doesn't, I'm new to VB and can't work it out, any help would be greatly appreciated.


Require Fast help -
I'm using VBcode to generate documents in MS word. This process is automated. Everything's working fine but the problem is with WinWord. At the start of code i have instantiated the word object and it looks like this : Dim wdNewWordApplication As Word.Application And then,


resolved:Curious problem in excel automation... -
I am curious as to what is happening here, I am automating an excel sort command, using this code: main.Range("A1:AM24").Sort Key1:=Range("A2"), Order1:=xlAscending, Header:= _ xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _


Memory problem with Word -
Im using my VB app to get data from a database and fill in Textfields in a Word doc and then print it. Its a rather complex document with lots of textfields and I would like to loop through 5000 records in one run. The problem is, memory used by word rises with each record filled (t


Vba 4605 -
Hi I am pretty new to the ASPs. I am developing an application that will be running word document in an IFRAME in an ASP page. When I try to save the contents of the word document, I am getting the error 4605. "The document is in use by another application.". This is wor


Detecting if Word2000 is running -
Hi All, I thought that using : Set msword = GetObject(, "Word.Application") Would cause my msword object to latch onto the existing app if it was running otherwise an error 429 would get thrown and I could then use : Set msword = CreateObject("Word.Appli


Starting Word... -
I have built an application and tried to launch Word using: _________________________________ Public Sub Send_Word() Dim hWord As Long Dim Appword As Word.Application Dim refstr As String On Error Resume Next 'I have declared previously this function hWord = FindWindow(&q


Failed to Create Multiple Word objects VB6 -
Hi Everyone, I'm working on a VB6 program which will process a selected word document. Anyway, I want to allow the users to work on some other MS word documents when the process is running. Because when i run my program, the process will take about 20 mins to finish, it's illogica


Word Templates -
Why can't I create a Word Application object when I execute the following line of code: Set oWordApp = Server.CreateObject("Word.Application.9") It gives the error that I can't create an Out of Process component. I've got Word2000 installed and I got the ProgID above f


OLE Word Objects -
I am just stating with OLE, and I’m weak on objects. First a bit of background, then questions. My first two OLE attempts have had some success. My first attempt was to control MS Word 95 with my VB6 on WMe. It turns out that I can’t use MS Word 95 this way as it does no


Closing Microsoft Word : problem using the Word.Global functions -
Hello there, could (please) anyone help me with this annoying problem? I'm making an application that has to put data on a simple Microsoft Word 2000 document. I use this code for it... --Begin Code-- dim objWrdApp As Word.Application On Error Resume Next Set objWrdApp


Problem with opening Word file. -
In a program that I am developping, at a certain moment I want to view a Word file with following steps: Set LV_Word_App = CreateObject("Word.Application") LV_Word_App.Visible = True Documents.Open "D:\60030508BOOM04.doc" This works fine, but when I


PLease kindly help me...! Creating MS Word documents using ASP -
Hi everyone, I'm trying very hard to create a MS Word document using ASP. Part of my code: ******************************************** <% Dim MyDoc Set MyDoc = CreateObject("Word.Document") MyDoc.Application.Visible = True ...... Set MyDoc = Nothing


Vb.Net and Word -
I wrote a program that uses a read only word document to serve as template for creating other documents. After I create and automatically save a new document using the template, I usually like to view it. Sometimes I forget to close word prior to creating another doucment. The resul


To find a word in MS-Word with files having extension .DOC (new try) -
I tried in the following way Dim Appword As Object Dim Wdoc As Document Set Appword = CreateObject("Word.Application") With Application.FileSearch With Appword.FileSearch .NewSearch .LookIn = "C:\My Documents" .SearchSubFolders = True .TextOrProperty =


CreateObject problem -
Hi All, Can somebody tell me what's wrong with this code? Dim Xls As Object Set Xls = CreateObject("Excell.application") Xls.Workbooks.Open &quo


PLEASE HELP me close Word from VB without messing my print queue -
I AM GOING MAD NOW! Im trying to close a word template and word application after trying to get it to print. The problem is, the print never gets chance to be printed before the code shuts th eapplication. I then get an annoying message telling me that if I close word my jobs in the


opening word doc -
I am trying to open up a word document... and i keep getting an error, here is my code Dim oWord As Object oWord = CreateObject("Word.Application") oWord.Visible = True oWord.Document.Open(Application.StartupPath & "\QuickStartManual.doc") Thanks


Open Word Document at Run time -
Hello, I want know how to open a word document in VB. I have done it using Createobject but the operations are happining internally (at background) eg. Dim wdapp as word.application Dim wddoc as word.documents Set wordapp = CreateObje


Word document, change characters -
I have this code to change ALL characters in a WORD Document into character (_). It works but there are also some pictures in the doc and they get lost when I run this. Its also very slow running this. I there someone have suggestions about this ? Code: Private Sub Command1_Cl


How to Open Word Doc/ Find/ paste into Excel -
Hi, total newbie at visual basic and I am sorry about this basic question! I have read a few posts and gotten a good start and some results but now I am stuck. I'm writing a VB6 program to open a word doc, find a string, and copy the string into an Excel file. I am able to open


Access Mailmerge Automation -
Can anyone tell me how I can perform a mailmerge by opening up word from access and performing a mailmerge automatically without opening access again as the datasource? I've copied the script below, if anyone has any suggestions please help!!! Dim objWord As Word.document Dim mywd


Word document problem -
Hi In my app I call a word document that has a letterhead. From the app I populate the document. The problem that I'm having is that the header is being over-written. How can I write to the document without the header beiong over-written? The code is as follows: Dim objWord As Word


Global.asa & CreateObject("") - peculiar!! -
Anyone know if this idea is possible in the global.asa : Sub Application_OnStart Set Application("myAppVar")=CreateObject("Scripting.Dictionary") End Sub Creates the runtime err: Application object error 'ASP 0197 : 80004005' Disallowed object use


early binding and MS Word -
I want to open word and place the contents of a RichTextBox into the word document. I then want to tell word to save the file as a text file with line breaks. If possible I would like to keep word hidden in the process. How do I get the contents of the RichTextBox into Word? Private Su


*Resolved* automation error (Word Application) -
I am getting an Automation Error while attempting to open a file with Document.open method with the word.application object. Below is the code I am using. Dim myWord As Word.Application Dim myWordDoc As Word.Document Set myWord = New Word.Application -> error stope here.


Help debugging a VB 6 / Word 2000 automation app. -
I have a VB 6 app that does a little Word 2000 automation in it. It runs fine on one Win 2K desktop, but fails on another. The error that it gets is number 48 "Error in loading DLL" and it occurs on the following statement: Code: set objApp = CreateObject("Word.App


Problem with MS Word object in VB -
I have a problem with using MS Word object in my VB codes. The codes are simple: > Dim WordApp As Word.Application > Set WordApp = CreateObject("Word.Application") But I suddenly got an error message when executing this statement: > Run-time err