com.aspose.cells.NameCollection

Hi,

what is the right way to obtain all com.aspose.cells.Name objects in a workbook and/or in a specific worksheet? Or how is it possible to obtain a NameCollection?

Regards
Mario

Hi Mario,


Thank you for contacting Aspose support. Please use WorksheetCollection.getNames to obtain the object of the NameCollection.

Java

Workbook book = new Workbook(“D:/book1.xlsx”);
NameCollection names = book.getWorksheets().getNames();

Hi Babar,

that simple?
I sometimes feel very stupid…

Thanks
Mario

Hi Mario,

Thanks for your posting and using Aspose.Cells.

Never mind. We are good to know that your issue is resolved now. Let us know if you encounter any other issue, we will be glad to look into it and help you further. Have a good day.