in reply to Re^2: Accessing Worksheet name in excel
in thread Accessing Worksheet name in excel
In the second script, you can open the right file. So, for now, forget about file access and solve the problem of accessing a sheet by name by working from the second script. Have you tried listing the names of the worksheets based on your second script, using the example I gave you?
Your second script is working normally. print "$Sheet" returns a strange value because $Sheet is an object. To access the sheet's name and print it, use
print $Sheet->Name, "\n";
If you continue to have problems, please post your exact code and the output you get.
|
---|