Avatar
Board Regular
- Joined
- Sep 20, 2005
- Messages
- 193
Greetings,
Can someone tell me why this hides all sheet tabs on all open workbooks instead of just the active one please? I'll be damned if i can see why it's doing it..
Set aWorkbook = ActiveWorkbook
counterstop = 1
Do Until counterstop = Sheets.Count + 1
aWorkbook.Sheets(counterstop).Visible = False
counterstop = counterstop + 1
Loop
Can someone tell me why this hides all sheet tabs on all open workbooks instead of just the active one please? I'll be damned if i can see why it's doing it..
Set aWorkbook = ActiveWorkbook
counterstop = 1
Do Until counterstop = Sheets.Count + 1
aWorkbook.Sheets(counterstop).Visible = False
counterstop = counterstop + 1
Loop