Re: Delphi 5 excel automation problem
- From: "Sonnich" <sonnich.jensen@xxxxxxxxxxxxxx>
- Date: 26 Mar 2006 21:48:49 -0800
jp wrote:
Im using D5 and automating with excel. Having problems applying a sort{snip}
on a range of data in a spread***. From my delphi code the following
piece of code gives a exception.
Work***.Range[startpoint,endpoint].Sort('D8',
xlAscending, //2
EmptyParam); //15
startpoint and endpoint encapsulate the whole data range. D8 is the
column of which to reorder the data elements.
any help would be gratefully appreciated
thank you
I once did something like this.... I havent used Excel for years.
ExcelApplication.Range[].Select;
ExcelApplication.Selection.Sort;
or
ExcelApplication.Selection.Sort(style=xlDescending);
This is just off my head, but using the Selection property you can
probably do what you want.
Take a close look at this
HTH
Sonnich
.
- References:
- Delphi 5 excel automation problem
- From: jp
- Delphi 5 excel automation problem
- Prev by Date: Re: TInifile.ReadSection does not read values
- Next by Date: popup menus
- Previous by thread: Delphi 5 excel automation problem
- Next by thread: popup menus
- Index(es):