Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
job job is offline
external usenet poster
 
Posts: 65
Default Why code work in 2003 but not 2000?

The following code works fine in 2003 but not in 2000. Any idea why?

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$E$6" Or Target.Address = "$E$8" Then
Application.ScreenUpdating = False
Sheets("Ranking Detail").Range("B10:W32").Sort Key1:=Sheets("Ranking
Detail").Range("F10"), Order1:=xlDescending, Header:=xlGuess _
, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("C2").Select

updte
End If
End Sub


Cheers,

Job


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Why code work in 2003 but not 2000?

I believe the DataOption argument was added in 2002 or 2003. Omit
it from your code.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Job" wrote in message
...
The following code works fine in 2003 but not in 2000. Any
idea why?

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$E$6" Or Target.Address = "$E$8" Then
Application.ScreenUpdating = False
Sheets("Ranking Detail").Range("B10:W32").Sort
Key1:=Sheets("Ranking Detail").Range("F10"),
Order1:=xlDescending, Header:=xlGuess _
, OrderCustom:=1, MatchCase:=False,
Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("C2").Select

updte
End If
End Sub


Cheers,

Job



  #3   Report Post  
Posted to microsoft.public.excel.programming
job job is offline
external usenet poster
 
Posts: 65
Default Why code work in 2003 but not 2000?

Perfect. Thanks!



"Chip Pearson" wrote in message
...
I believe the DataOption argument was added in 2002 or 2003. Omit it from
your code.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Job" wrote in message
...
The following code works fine in 2003 but not in 2000. Any idea why?

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$E$6" Or Target.Address = "$E$8" Then
Application.ScreenUpdating = False
Sheets("Ranking Detail").Range("B10:W32").Sort Key1:=Sheets("Ranking
Detail").Range("F10"), Order1:=xlDescending, Header:=xlGuess _
, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("C2").Select

updte
End If
End Sub


Cheers,

Job





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
Work Week, Excel 2000 & 2003 [email protected] Excel Worksheet Functions 1 January 31st 08 08:41 PM
Macros created in 2003 won't work in 2000 dford Excel Discussion (Misc queries) 8 December 22nd 06 09:29 PM
Macros won't work in 2000 that are created in 2003 dford Excel Discussion (Misc queries) 3 December 17th 06 06:49 PM
will macro created in excell 2003 work if run using 2000 Michael Soares Excel Discussion (Misc queries) 2 September 11th 06 05:34 PM
Excel 2000 to 2003 update links doesn't work properly any suggest Richard Excel Worksheet Functions 2 September 8th 05 01:06 AM


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