Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 262
Default Library issues

I have a workbook with several modules in it to do different tasks. It was
written in Excel 2003 and it works great in Excel 2003 and Excel XP.

Unfortunately most of the users use Excel 2000 and when the try to do a
simple sort by running one of the modules attached to a button the sheet they
get the error message "Compile error: Can't find Project Library" I had a
look at the code and the first thing it has a problem with is the line:

Selection.Sort Key1:=Range("A2"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal

The error is with the xlSortNormal

How can I resolve this problem?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Library issues

Just remove that argument...

Selection.Sort Key1:=Range("A2"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom

--
HTH...

Jim Thomlinson


"Keith" wrote:

I have a workbook with several modules in it to do different tasks. It was
written in Excel 2003 and it works great in Excel 2003 and Excel XP.

Unfortunately most of the users use Excel 2000 and when the try to do a
simple sort by running one of the modules attached to a button the sheet they
get the error message "Compile error: Can't find Project Library" I had a
look at the code and the first thing it has a problem with is the line:

Selection.Sort Key1:=Range("A2"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal

The error is with the xlSortNormal

How can I resolve this problem?

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
Outlook 11 Outlook 10 Object Library Compatibility Issues Paul Mac[_4_] Excel Programming 11 May 19th 06 04:27 AM
TYPE Library issues. shishi Excel Programming 1 August 19th 05 07:11 PM
Reference Library - Missing Library in a lower version. luvgreen Excel Programming 1 October 7th 04 02:08 AM
Add library in vba JonoB[_3_] Excel Programming 0 April 23rd 04 01:04 PM
Use the .NET Library in VBA? Thomas Wieser Excel Programming 1 April 14th 04 02:07 PM


All times are GMT +1. The time now is 09:58 AM.

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

About Us

"It's about Microsoft Excel"