-
You could enter an "x" in each row you want in your array, some code like this will create the string you can copy and paste to create your revised array.
[vba]
Sub Nums()
Dim txt As String, cel As Range
For Each cel In Columns("O").SpecialCells(xlCellTypeConstants)
txt = txt & cel.Row & ", "
Next
txt = Left(txt, Len(txt) - 2)
Range("O1") = txt
End Sub
[/vba]
It may be possible to do this directly from your data, if the key rows are identifiable.
MVP (Excel 2008-2010)
Post a workbook with sample data and layout if you want a quicker solution.
To help indent your macros try Smart Indent
Please remember to mark threads 'Solved'
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules