I normally use a basic code that looks into a secondary workbook and scrolls through all that tabs for me (example scroll below). However, what I just realized was that I'm always running this against other macro enabled files. And earlier when I tried it against an ".xlsx" file, it would not go past the start for the for loop, even though it got in the file fine.
Can someone suggest another method (code) to use to list out the tabs of a secondary
Example scroll I am only successfull with marco enabled files:
Can someone suggest another method (code) to use to list out the tabs of a secondary
".xlsx"
file?Example scroll I am only successfull with marco enabled files:
For Each sh In Worksheet
sh.name
if sh.name="Sheet1" then
[do this]
else
[do that]
endif
Next sh
sh.name
if sh.name="Sheet1" then
[do this]
else
[do that]
endif
Next sh