active sheet

  • Thread starter Thread starter bob engler
  • Start date Start date
B

bob engler

I am trying to do a for loop to get each sheet in Worksheets and then
extract data from that active sheet. What would the 'for' statement be???


Thanks
 
Hi
try
...
Dim wks as worksheet
for each wks in activeworkbook.worksheets
msgbox wks.Range("A1").value
next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top