I have around 300 excel files(with multiple sheets) in my working directory. I use the following code to extract the only the list of files from working directory.
Filesnames <- list.files()
But I also need sheet names from these excel files and I need to know from which excel files these sheets are from. For example, Excel 1 has A,B,C sheet names and Excel 2 has X,Y sheet names. When I run a code, I need to get A,B,C from Excel 1 and X,Y from Excel 2.