#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default unhidden row only

May I know how to numbered unhidden rows only.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,091
Default unhidden row only

You cannot renumber the rows. Excel maintains the row numbers. You may not
change them.

Tyro

"Nahc" wrote in message
...
May I know how to numbered unhidden rows only.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default unhidden row only

am not re-numbering/re-sequencing it. the full sheet (hide and unhide) will
not be numbered. it will only be numbered after hiding those unwanted rows.
but when i try to number/sequence it on the unhidden rows.....the numbers
will include those hidden too.

Please note I may need to retrieve some of the hidden row for later use
hence am not deleting but hiding it.


"Tyro" wrote:

You cannot renumber the rows. Excel maintains the row numbers. You may not
change them.

Tyro

"Nahc" wrote in message
...
May I know how to numbered unhidden rows only.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,069
Default unhidden row only

Try this macro. It inserts a new column A, then in that column numbers only
the visible rows.

Sub NumberVisibleRows()
Dim x As Long, Rng As Range
x = 0
'Insert a new column A on the active sheet.
Range("A1").Select
Selection.EntireColumn.Insert
'Select the new column A.
Columns("A:A").Select
'Walk down column A.
For Each Rng In Selection
'If row is not hidden, increment the
'counter and number the row.
If Rng.EntireRow.Hidden = False Then
x = x + 1
Rng.Value = x
End If
'Move to the next row.
Next Rng
End Sub

Hope this helps,

Hutch

"Nahc" wrote:

am not re-numbering/re-sequencing it. the full sheet (hide and unhide) will
not be numbered. it will only be numbered after hiding those unwanted rows.
but when i try to number/sequence it on the unhidden rows.....the numbers
will include those hidden too.

Please note I may need to retrieve some of the hidden row for later use
hence am not deleting but hiding it.


"Tyro" wrote:

You cannot renumber the rows. Excel maintains the row numbers. You may not
change them.

Tyro

"Nahc" wrote in message
...
May I know how to numbered unhidden rows only.




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
Copying only unhidden rows Cathy Excel Discussion (Misc queries) 2 October 17th 07 03:36 PM
Print only unhidden rows fstone09 Excel Worksheet Functions 11 May 23rd 07 01:18 PM
How do I copy only the unhidden rows/colums? Tsae0c Excel Discussion (Misc queries) 2 March 7th 07 05:36 PM
sumif only for unhidden rows Bob Phillips Excel Worksheet Functions 5 December 11th 05 08:43 AM
Protecting a worksheet so it cant be unhidden ynissel Excel Discussion (Misc queries) 2 June 10th 05 08:59 PM


All times are GMT +1. The time now is 11:16 PM.

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

About Us

"It's about Microsoft Excel"