Results 1 to 3 of 3

Thread: automation

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2001
    Location
    holland
    Posts
    4

    automation

    i wil make wish automation a link to words. That i can But i want to make't so that my vb6.0 prog can put informatie to this words doc. every time i want that so long my vb prog is working.

    i cant make that, ervery time i get a error. i cant find the link too my words document.
    --------------------------------------------------------------------------------




    Dim x As Object
    Set x = CreateObject("word.applicatie8")
    If cmddiensten.Caption = "diensten invoeren" Then
    x.Documents.add Template:="D:\Program Files\Microsoft Office\Sjablonen\daglijstic.dot"
    If Text2.Text = "A" Then
    x.ActiveDocument.Bookmarks("A1").Select
    x.Selection.InsertAfter Text:=List1.Text + ", "
    End If
    please help my

  2. #2
    jim mcnamara
    Guest
    I've fixed some syntax errors. See if this helps.
    Code:
    Dim x As Object 
    Set x = CreateObject("Word.Application") 
    If cmddiensten.Caption = "diensten invoeren" Then 
      x.Documents.add Template:="D:\Program Files\MicrosoftOffice\Sjablonen\daglijstic.dot" 
    End if
    If Text2.Text = "A" Then 
      x.ActiveDocument.Bookmarks("A1").Select 
      x.Selection.InsertAfter Text:=List1.Text + ", " 
    End If

  3. #3
    New Member
    Join Date
    Jul 2001
    Location
    Malaysia
    Posts
    1
    I am facing the same problem too!

    My Program works fine in Office 2000 Full version, but it generate
    automation error for Office 2000 upgrade version.

    Helps are appreacited!


    Thanks
    Eric Lee Chun Hoo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width