Results 1 to 6 of 6

Thread: automation error in win 98

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Posts
    4

    Question automation error in win 98

    i've coded a program that will generate an excel format in windows XP platform.. But when I run it in windows 98 there is an "automation erro".Is there any patches I can use to solve this prolem?

  2. #2
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697
    I'm in the same situation and would like to know if there is a solution.

  3. #3
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611
    Differnt version from office installed, office installed at all?

  4. #4

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Posts
    4

    I created an excel base format in Office 2000 and when I tested it in win 98 I also created an excel base format in office 97...When I debug the progrma I can't open an excel object.. I do not know why.. Here's the error..

    XLapp = nothing

    Here's the way I declared my excel object....

    Option Explicit
    Global DBCONN As ADODB.Connection
    Global DBCONNstr As String
    Public XLapp As Object
    Public XLbook As Object

    Is there any other way to declare an excel application?

  5. #5
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697
    This is how I have declared Excel..

    Code:
    Public objExcel As Object 'instead of Excel.Application
    Public oXLApp As Object  'instead of Excel.Spreadsheet

  6. #6

    Thread Starter
    New Member
    Join Date
    Aug 2003
    Posts
    4

    Smile

    okay!!! i'll just try to changed the declaration......

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