We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

First selected Cell

Hello,

Is there anyway to set which cell is selected when the user opens up the spreadsheet? I know its possible to set which worksheet is selected but I can’t seem to find a way to set a particular cell as being the one that is currently selected.

Thanks,
Eric

We don’t support to set it at run time. However, you can set it in your template file.

Hi,

Is this feature now available (this is an old post) in most recent version, I am looking for same functionality but cannot find?

Tony

Hi Tony,

Thanks for your posting and considering Aspose.Cells.

Do you want to set some cell of the worksheet as active cell? If this is what you needed, then please see the following code. I have also attached the output Excel file generated by it for your reference. I used the latest version: Aspose.Cells for .NET (Latest Version) to execute this code.

C#


Workbook workbook = new Workbook();


Worksheet worksheet = workbook.Worksheets[0];


//Set D5 as active cell

worksheet.ActiveCell = “D5”;


workbook.Save(“output.xlsx”);