Consulting

Results 1 to 7 of 7

Thread: Compile Error: Automation Error

  1. #1
    VBAX Mentor Hoopsah's Avatar
    Joined
    Nov 2007
    Posts
    303
    Location

    Compile Error: Automation Error

    Hi

    I recently got an upgraded computer from IT and now cannot get one of my old programs to work.

    When I open the Excel file everything works as it should, however, when I try to save I get a pop-up stating that Document could not be saved,
    I click ok, and then every cell I click on is greeted with a pop-up stating Automation Error

    I have tried on someone elses PC and all was fine

    I assume I am missing a library or object but I have exhaused google to no avail

    Any help apprecieted

    Hoops
    I am playing all the right notes, but not necessarily in the right order.
    Eric Morecambe

  2. #2
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,726
    Location
    In the VBIDE Tools, References, and see if any are #Missing

    Paul

  3. #3
    VBAX Mentor Hoopsah's Avatar
    Joined
    Nov 2007
    Posts
    303
    Location
    I did check the other user and all that had ticked were:

    Visual Basic for Applications
    Microsoft Excel 10.0 Object Library
    OLE Automation
    Microsoft Office 10.0 Object Library

    I have the same ticked within my VB
    I am playing all the right notes, but not necessarily in the right order.
    Eric Morecambe

  4. #4
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    With Vista & Win7 you cannot save to the root folder (C Drive) using code.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  5. #5
    VBAX Mentor Hoopsah's Avatar
    Joined
    Nov 2007
    Posts
    303
    Location
    Hi

    I'm not using code I am simply doing the File, Save from the menu

    I have tried it on another users computer and everything is fine
    I am playing all the right notes, but not necessarily in the right order.
    Eric Morecambe

  6. #6
    VBAX Mentor Hoopsah's Avatar
    Joined
    Nov 2007
    Posts
    303
    Location
    Bump!
    I am playing all the right notes, but not necessarily in the right order.
    Eric Morecambe

  7. #7
    VBAX Mentor Hoopsah's Avatar
    Joined
    Nov 2007
    Posts
    303
    Location
    Bump! Bump!
    I am playing all the right notes, but not necessarily in the right order.
    Eric Morecambe

Posting Permissions

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