@Sougata Ghosh , you could try the following code to get the active sheet of workbook.
Sub Main()
Dim oxl As Excel.Application
Dim owbs As Excel.Workbooks
Dim owb As Excel.Workbook
Dim osheet As Excel.Worksheet
oxl = CreateObject("Excel.Application")
oxl.Visible = True
owb = oxl.Workbooks.Open("C:\\Users\\username\\Desktop\\test.xlsx")
osheet = owb.ActiveSheet
Console.WriteLine("Active Sheet: {0}", osheet.Name)
Console.ReadLine()
End Sub
Best regards,
Jack
If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.