evil_moses
New Member
- Joined
- Oct 27, 2008
- Messages
- 39
Hi,
I am trying to write a macro to start at the sheet on the left hand side of the workbook and perfrom some actions until the right hand sheet is reached. I just don't know how tell the macro to stop looping once the action has been performed on the right hand sheet, and was wondering if somebody is able to fill in the blanks?
Sub Check_Hidden()
Sheets(2).Select
Do Until HELP NEEDED HERE!!!
Columns("J:J").Select
If Selection.ColumnWidth > 0 Then
Hide_All_Salaries
ActiveWorkbook.Save
Exit Sub
End If
ActiveSheet.Next.Select
Loop
End Sub
Thanks for your help, I really appreciate it.
I am trying to write a macro to start at the sheet on the left hand side of the workbook and perfrom some actions until the right hand sheet is reached. I just don't know how tell the macro to stop looping once the action has been performed on the right hand sheet, and was wondering if somebody is able to fill in the blanks?
Sub Check_Hidden()
Sheets(2).Select
Do Until HELP NEEDED HERE!!!
Columns("J:J").Select
If Selection.ColumnWidth > 0 Then
Hide_All_Salaries
ActiveWorkbook.Save
Exit Sub
End If
ActiveSheet.Next.Select
Loop
End Sub
Thanks for your help, I really appreciate it.