what do you mean 'looping through sheet 2 - sheet n'? why are you looping through them (want functions are happening or what data are you looking for, etc)?
neo
i have controls on sheet 1. so i am trying to figure out how to start at sheet 2, perform some actions(eg:copy, paste,etc) then go to next sheet, perform some actions, etc. unitl the i have performed all desired actions on the sheets.
ex: for sheet(2) to sheet(5)
perform actions
next sheet
Rob
Presuming you want to do something on all sheets except Sheet1, try this:
Sub NNN()
For Each s In ActiveWorkbook.Sheets
s.Activate
If ActiveSheet.Name <> "Sheet1" Then
{Your code}
Next s
End Sub
That work for you?
Sure did! Thanks. Im just learing macros so it was prob. a redundant or dumb question but I needed some help.
any chance you might have an example of how to find the last cell of say columns A-D that have data in them?
Rob Presuming you want to do something on all sheets except Sheet1, try this: Sub NNN()