How to get information from excel if I do not know name of sheet and how many columns

Hi @Aggi,

use the below code to get the download path and store it into string variable(strpath)
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)+"\Downloads" **or** Environment.ExpandEnvironmentVariables("%USERPROFILE%\Downloads")

strXLFilePath=Directory.GetFiles(folderlocation, “*.xlsx”)(0)

use Excel Application scope to read the sheet. (Refer the below path how to get the sheet names)

Then use Read Range to get the data from the excel.

Regards,
Arivu