Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Excel 2003 file opend in Excel 2000 - Compile error in hidden modu

Hi,

I recently upgraded to Excel 2003 from Excel 2000. My client still uses the
Excel 2000 version.

There is a lot of VBA programming in the file (both at the worksheet level
as well as classes and modules).

After I started saving the file in Excel 2003 version, when the client
(using Excel 2000) opens the file, they get the error "Compile error in
hidden module" for two different modules.

I did some research on google and this is what I found out:
When I save the file in 2003 version, the client's computer (Excel 2000)
looks for the 2003 Type Library (.olb file), does not find it, and displays
the error.

Here are the options that I have currently:
1. Use Late Binding - But this would require a lot of changes in the code
2. Downgrade my version to Excel 2000 and start saving the files in that
version.

Do any of you have any other suggestions ?

Here is one thing I tried that didn't work: Save the file for a previous
version as "MS Excel 97 - Excel 2003". - Opening in Excel 2000 still gives
the error. This does not attach the new type library.

And another problem is that the type libraries (olb files) are NOT
redistributable.

I am looking forward to all the suggestions.
Thank you,
Bhavdeep
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Excel 2003 file opend in Excel 2000 - Compile error in hidden modu

You should always develop for the lowest version of Excel that you anticipate
will be running. In your case this should be done in Excel 2000, otherwise
you will continue to get errors. As for Late binding you should never do
that. Just because you can do it does not mean you should. VBA allows a lot
to things that are just not good. Check out this link (near the bottom of the
page) for an explanation...

http://www.cpearson.com/excel/variables.htm
--
HTH...

Jim Thomlinson


"BhavdeepSachdev" wrote:

Hi,

I recently upgraded to Excel 2003 from Excel 2000. My client still uses the
Excel 2000 version.

There is a lot of VBA programming in the file (both at the worksheet level
as well as classes and modules).

After I started saving the file in Excel 2003 version, when the client
(using Excel 2000) opens the file, they get the error "Compile error in
hidden module" for two different modules.

I did some research on google and this is what I found out:
When I save the file in 2003 version, the client's computer (Excel 2000)
looks for the 2003 Type Library (.olb file), does not find it, and displays
the error.

Here are the options that I have currently:
1. Use Late Binding - But this would require a lot of changes in the code
2. Downgrade my version to Excel 2000 and start saving the files in that
version.

Do any of you have any other suggestions ?

Here is one thing I tried that didn't work: Save the file for a previous
version as "MS Excel 97 - Excel 2003". - Opening in Excel 2000 still gives
the error. This does not attach the new type library.

And another problem is that the type libraries (olb files) are NOT
redistributable.

I am looking forward to all the suggestions.
Thank you,
Bhavdeep

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Excel 2003 file opend in Excel 2000 - Compile error in hidden

Thanks Jim,

The project I am working on requires multiple saves for the same file by me
and the client. (i.e. I save the file & send it to the client, the client
makes changes and saves it and sends it back to me. This process is done
multiple times)

I can develop and save the file in Excel 2000, but some of the clients have
Excel 2003 too. When they save it and send it back to me, I will get the
"Compile error in hidden module"

Any suggestions ?

Thanks,
Bhavdeep.

"Jim Thomlinson" wrote:

You should always develop for the lowest version of Excel that you anticipate
will be running. In your case this should be done in Excel 2000, otherwise
you will continue to get errors. As for Late binding you should never do
that. Just because you can do it does not mean you should. VBA allows a lot
to things that are just not good. Check out this link (near the bottom of the
page) for an explanation...

http://www.cpearson.com/excel/variables.htm
--
HTH...

Jim Thomlinson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Excel 2003 file opend in Excel 2000 - Compile error in hidden

So long as you develop it in 2000 then it will be compatible with 2003, as
opposed to the other way around where you could introduce features which are
not supported. So long as it works for the lowest version you will be good to
go for all users. After that it does not matter what version it is saved in,
unless one of your clients introduces features which are not supported, saves
the file and sends it back then you will have to clean that up.
--
HTH...

Jim Thomlinson


"BhavdeepSachdev" wrote:

Thanks Jim,

The project I am working on requires multiple saves for the same file by me
and the client. (i.e. I save the file & send it to the client, the client
makes changes and saves it and sends it back to me. This process is done
multiple times)

I can develop and save the file in Excel 2000, but some of the clients have
Excel 2003 too. When they save it and send it back to me, I will get the
"Compile error in hidden module"

Any suggestions ?

Thanks,
Bhavdeep.

"Jim Thomlinson" wrote:

You should always develop for the lowest version of Excel that you anticipate
will be running. In your case this should be done in Excel 2000, otherwise
you will continue to get errors. As for Late binding you should never do
that. Just because you can do it does not mean you should. VBA allows a lot
to things that are just not good. Check out this link (near the bottom of the
page) for an explanation...

http://www.cpearson.com/excel/variables.htm
--
HTH...

Jim Thomlinson

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
When i open excel, i i get: Compile error in hidden Module, HELP! Snoopy Excel Discussion (Misc queries) 1 February 19th 09 03:07 PM
Compile error in hidden module Excel 2007 jgt1942 Excel Discussion (Misc queries) 1 October 20th 08 01:31 PM
Compile error in hidden module in excel 2002 X2002 Excel Discussion (Misc queries) 1 March 5th 07 02:32 PM
compile error in hidden module autoexec.new in excel 2003 maurice Charts and Charting in Excel 1 January 1st 07 06:13 PM
compile error in hidden module with excel 2003 Brian Murphy[_2_] Excel Programming 2 April 7th 04 11:21 PM


All times are GMT +1. The time now is 01:30 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"