PDA

View Full Version : Compile Error: Automation Error



Hoopsah
11-15-2011, 06:32 AM
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

Paul_Hossler
11-15-2011, 06:46 AM
In the VBIDE Tools, References, and see if any are #Missing

Paul

Hoopsah
11-15-2011, 07:12 AM
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

mdmackillop
11-15-2011, 05:08 PM
With Vista & Win7 you cannot save to the root folder (C Drive) using code.

Hoopsah
11-16-2011, 01:35 AM
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

Hoopsah
11-17-2011, 06:17 AM
Bump!

Hoopsah
11-25-2011, 01:58 AM
Bump! Bump!