Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default XP VBA Compile error...Missing files


I have been developing software in VBA on a windows2000 machine without
problems, but recently we have had several new XP machines in, and that
is where the problem starts.

One particular .xla I have written will work on windows 2000, but will
not run on XP.

The following error message is displayed:

Compile Error: Can't find Project or Library.

I looked up this error and followed the apropriate actions (basically
identify missing files and load them in the references dialog).

The problem files are Filemgmt.dll 1.0 and Shappmgr 1.0 (appwiz.dll)

appwiz.dll is not on the XP computer, so I don't know where to go with
that one.

more annoyingly Filemgmt.dll is on the XP machine, but it says it cant
load it!

Does anyone know of a way to solve this problem?

Many thanks in advance

Stuart


--
Stu78
------------------------------------------------------------------------
Stu78's Profile: http://www.excelforum.com/member.php...o&userid=13607
View this thread: http://www.excelforum.com/showthread...hreadid=474085

  #2   Report Post  
Posted to microsoft.public.excel.programming
bac bac is offline
external usenet poster
 
Posts: 76
Default XP VBA Compile error...Missing files

I had the same problem with a bunch of my VBA stuff when we upgraded to XP
from 2000. For the most part, I found that if I simply removed the reference
when the add-in manager/reference dialog said the file was "Missing" I
didn't have any problem. I'm guessing some of the "external" references (i.e.
to .dll's) havebeen "internalized" in XP??



"Stu78" wrote:


I have been developing software in VBA on a windows2000 machine without
problems, but recently we have had several new XP machines in, and that
is where the problem starts.

One particular .xla I have written will work on windows 2000, but will
not run on XP.

The following error message is displayed:

Compile Error: Can't find Project or Library.

I looked up this error and followed the apropriate actions (basically
identify missing files and load them in the references dialog).

The problem files are Filemgmt.dll 1.0 and Shappmgr 1.0 (appwiz.dll)

appwiz.dll is not on the XP computer, so I don't know where to go with
that one.

more annoyingly Filemgmt.dll is on the XP machine, but it says it cant
load it!

Does anyone know of a way to solve this problem?

Many thanks in advance

Stuart


--
Stu78
------------------------------------------------------------------------
Stu78's Profile: http://www.excelforum.com/member.php...o&userid=13607
View this thread: http://www.excelforum.com/showthread...hreadid=474085


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default XP VBA Compile error...Missing files


I can get the macro to run as you describe, but each time it is loaded,
the references must be deleted. Very annoying.

I think I may have found a solution to my problem though:

What I did was export all of my procedures and forms to .bas and .frm
files and then load them all into a fresh workbook on the XP machine.
The new macro appears to work fine on XP and 2000.

I haven't done extensive testing yet, but i did notice that the new
file (which contains exactly the same forms and procedures as the old
file) is almost half the size! So my guess is that some very old
code/references were never properly removed by VB during my many
edits/re-writes!.

Stuart

BAC Wrote:
I had the same problem with a bunch of my VBA stuff when we upgraded to
XP
from 2000. For the most part, I found that if I simply removed the
reference
when the add-in manager/reference dialog said the file was "Missing"
I
didn't have any problem. I'm guessing some of the "external" references
(i.e.
to .dll's) havebeen "internalized" in XP??



"Stu78" wrote:


I have been developing software in VBA on a windows2000 machine

without
problems, but recently we have had several new XP machines in, and

that
is where the problem starts.

One particular .xla I have written will work on windows 2000, but

will
not run on XP.

The following error message is displayed:

Compile Error: Can't find Project or Library.

I looked up this error and followed the apropriate actions

(basically
identify missing files and load them in the references dialog).

The problem files are Filemgmt.dll 1.0 and Shappmgr 1.0 (appwiz.dll)

appwiz.dll is not on the XP computer, so I don't know where to go

with
that one.

more annoyingly Filemgmt.dll is on the XP machine, but it says it

cant
load it!

Does anyone know of a way to solve this problem?

Many thanks in advance

Stuart


--
Stu78

------------------------------------------------------------------------
Stu78's Profile:

http://www.excelforum.com/member.php...o&userid=13607
View this thread:

http://www.excelforum.com/showthread...hreadid=474085




--
Stu78
------------------------------------------------------------------------
Stu78's Profile: http://www.excelforum.com/member.php...o&userid=13607
View this thread: http://www.excelforum.com/showthread...hreadid=474085

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable find files error message for missing links on opening WB RAZA Excel Discussion (Misc queries) 3 May 10th 06 12:32 PM
Compile error on "Right", missing Library Sige Excel Programming 9 September 30th 05 05:04 PM
Compile Errors and Missing references mangesh_yadav[_148_] Excel Programming 1 October 29th 04 11:43 AM
Compile Errors and Missing references mangesh_yadav[_145_] Excel Programming 1 October 28th 04 09:13 AM
Error Handling Open Function or query for missing Files BigNate Excel Programming 3 June 11th 04 05:22 PM


All times are GMT +1. The time now is 12:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"