Re: VBA Problem in Excel 97
- From: "LoneStar" <lonestar@xxxxxxxxxxxxxxx>
- Date: 5 Jul 2006 19:21:21 -0700
Will definitely give it a try - thanks so much!
Harlan Grove wrote:
LoneStar wrote...
...
The macro works perfectly for anyone with Excel 2000 and higher (it was
built in 2002 and saved as a 97-2002 workbook). However, I have one
person that is using Excel 97 that is getting a run-time error on the
Selection.Sort portion of the macro. I attempted to save the file as
an Excel 95 with no joy to them.
Changing file formats has as little effect on VBA code (as long as it
remains in the file) as changing number formats has on underlying
values.
Is there a difference in the VBA for sorting the data in Excel 97 that...
I am missing? Here is the macro in its entirety, Ithe RunTime error
that is found on Debug in 97 is the Selection.Sort on column B:
Yes. Microsoft added properties to the Sort method in Excel 2K.
Selection.Sort Key1:=Range("B1"), Order1:=xlAscending, Header:=xlGuess, _...
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
DataOption1 is what's causing the problem. Delete it.
.
- Follow-Ups:
- Re: VBA Problem in Excel 97
- From: LoneStar
- Re: VBA Problem in Excel 97
- References:
- VBA Problem in Excel 97
- From: LoneStar
- Re: VBA Problem in Excel 97
- From: Harlan Grove
- VBA Problem in Excel 97
- Prev by Date: Re: Application.Transpose in VBA EXCEL 2003
- Next by Date: Re: VBA Problem in Excel 97
- Previous by thread: Re: VBA Problem in Excel 97
- Next by thread: Re: VBA Problem in Excel 97
- Index(es):
Relevant Pages
|
|