Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 226
Default Go to first empty worksheet in a certain group of sheets

Hello All,

I have a group of 10 worksheets hidden in a Workbook. Im looking for a
Macro to find the first empty sheet in that 10 page hidden group. Each sheet
in the group is named T with a number next to the T (i.e. T1, T2,T3,
T4.etc).

The criteria for the page being empty is based on cell A1 being empty.

Any thoughts would be greatly appreciated.

Thank you Roger
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 110
Default Go to first empty worksheet in a certain group of sheets

Hello Roger
Sub FindFirstEmpty()
Dim sh As Worksheet
Dim i As Integer
For i = 1 To 10
If Worksheets("T" & i).Range("A1") = "" Then
MsgBox "First empty cell found in sheet T" & i
Exit For
End If
Next i
End Sub

"Roger" a crit dans le message de news:
...
Hello All,

I have a group of 10 worksheets hidden in a Workbook. I'm looking for a
Macro to find the first empty sheet in that 10 page hidden group. Each
sheet
in the group is named "T" with a number next to the T (i.e. T1, T2,T3,
T4...etc).

The criteria for the page being empty is based on cell A1 being empty.

Any thoughts would be greatly appreciated.

Thank you - Roger



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 226
Default Go to first empty worksheet in a certain group of sheets

Thank you Papou - works great!

Roger

"papou" wrote:

Hello Roger
Sub FindFirstEmpty()
Dim sh As Worksheet
Dim i As Integer
For i = 1 To 10
If Worksheets("T" & i).Range("A1") = "" Then
MsgBox "First empty cell found in sheet T" & i
Exit For
End If
Next i
End Sub

"Roger" a écrit dans le message de news:
...
Hello All,

I have a group of 10 worksheets hidden in a Workbook. I'm looking for a
Macro to find the first empty sheet in that 10 page hidden group. Each
sheet
in the group is named "T" with a number next to the T (i.e. T1, T2,T3,
T4...etc).

The criteria for the page being empty is based on cell A1 being empty.

Any thoughts would be greatly appreciated.

Thank you - Roger




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 226
Default Go to first empty worksheet in a certain group of sheets



One last question. Is there a way to select and go to that sheet vs. a
message box?

Thanks - Roger


"Roger" wrote:

Hello All,

I have a group of 10 worksheets hidden in a Workbook. Im looking for a
Macro to find the first empty sheet in that 10 page hidden group. Each sheet
in the group is named T with a number next to the T (i.e. T1, T2,T3,
T4.etc).

The criteria for the page being empty is based on cell A1 being empty.

Any thoughts would be greatly appreciated.

Thank you Roger

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 110
Default Go to first empty worksheet in a certain group of sheets

Hi Roger

Sub FindFirstEmpty()
Dim sh As Worksheet
Dim i As Integer
For i = 1 To 10
If Worksheets("T" & i).Range("A1") = "" Then
Worksheets("T" & i).Activate
Exit For
End If

HTH
Cordially
Pascal

"Roger" a crit dans le message de news:
...


One last question. Is there a way to select and go to that sheet vs. a
message box?

Thanks - Roger


"Roger" wrote:

Hello All,

I have a group of 10 worksheets hidden in a Workbook. I'm looking for a
Macro to find the first empty sheet in that 10 page hidden group. Each
sheet
in the group is named "T" with a number next to the T (i.e. T1, T2,T3,
T4...etc).

The criteria for the page being empty is based on cell A1 being empty.

Any thoughts would be greatly appreciated.

Thank you - Roger



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
moving page breaks in a group of sheets Shelia Excel Discussion (Misc queries) 1 June 27th 07 09:44 PM
group sheets with macro in excel jannkatt Excel Discussion (Misc queries) 2 May 18th 06 02:43 PM
group excel sheets within workbook melbournedude1 Excel Discussion (Misc queries) 4 February 13th 06 12:53 PM
Group and ungroup protected sheets bob Excel Discussion (Misc queries) 1 February 28th 05 01:39 PM
Group Sheets Brian Keanie Excel Discussion (Misc queries) 10 January 1st 05 08:34 PM


All times are GMT +1. The time now is 11:40 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"