//use onselchangeEvent;
private
FActiveSheet : Integer;
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.F1Book1SelChange(Sender: TObject);
begin
if F1Book1.Sheet<>FActiveSheet then
begin
FActiveSheet := F1Book1.Sheet
showmessage(F1Book1.SheetName[F1Book1.Sheet]);
end;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
FActiveSheet := F1Book1.Sheet
end;