Changing the Selected Cell or Area

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
Ian Wakeling
Posts: 7
Joined: Thu Apr 07, 2005 10:23 am
Location: Norfolk, UK

Changing the Selected Cell or Area

Post by Ian Wakeling »

I would like to set a specific cell or range of cells on a worksheet to be selected when then the user opens a workbook. Can anyone give me some example code?
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Post by larsa »

Hello

Use the XLS.Sheets[0].SelectedAreas property.


Lars Arvidsson
Ian Wakeling
Posts: 7
Joined: Thu Apr 07, 2005 10:23 am
Location: Norfolk, UK

Post by Ian Wakeling »

Hello Lars,

It must be obvious, but I am just not seeing what I have to do.

If I use syntax like:

XLS.Sheets[0].SelectedAreas.Add(1,1,5,10);

then can you tell me what I have to do to make that area the current selection?

Many thanks,

Ian.
Post Reply