How to count the number of sheets in the excel file

Hi Guys,

How to count the number of sheets (sheet 1,sheet 2…sheet n) in the excel file.?
Please let me know your answers,

Thanks in Advance,

1 Like

you can use an assign with Wb.Sheets.Count

1 Like

Hi @TimK,

Tried the same,but no luck :frowning:

1 Like

if you can send me the sample files,that willbe great

1 Like

@rpadev please check attached file NextSheetExl.zip (85.3 KB)

3 Likes

Hey…Thanks @indra .It works perfectly

1 Like

great work buddy

1 Like