Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to retrieve all sheets without knowing sheet name

Status
Not open for further replies.

paopao000137

Programmer
Jun 8, 2004
6
US
Hi,

I am working on excel report parser. Though my all reports have same format, sheets' names are named differently from one report to another report by different people. So how to retrieve all sheets, one by one without knowing sheet's name? I only know

Set xlSheets = xlBook.Sheets("sheetname")---I need to know sheet name.

Many thanks

 
Hi
In essence:-
dim ws as worksheet
for each ws in worksheets
do some stuff to ws
eg msgbox ws.name
next

;-)
If a man says something and there are no women there to hear him, is he still wrong? [ponder]
How do I get the best answers?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top