>I am looking to group cells in excel.
> I have a column called level and the levels range from 4-6.
[quoted text clipped - 20 lines]
>
> I don't know any coding so if you could please assist me with this.
On Mar 23, 7:27 pm, "Héctor Miguel" <NOhemiordiS...@PLShotmail.com>
wrote:
> hi, !
>
[quoted text clipped - 39 lines]
>
> > I don't know any coding so if you could please assist me with this.
Hector, the macro works great. You have been great help. Is it
possible to run the macro for all the worksheets? I have about 10
sheets in the excel workbook. If I could run it for all the sheet
instead of just running the macro for each sheet, it would save a lot
of time.
Thanks,
Aman
Héctor Miguel - 24 Mar 2008 20:59 GMT
hi, aman !
> ... Is it possible to run the macro for all the worksheets?
> I have about 10 sheets in the excel workbook.
> If I could run it for all the sheet instead of just running the macro for each sheet, it would save a lot of time.
could it be someting like:
Sub OutLineRows_Base_4To6()
Dim nSheet As Worksheet, eCell As Range
Application.ScreenUpdating = False
For Each nSheet In Worksheets
With nSheet
For Each eCell In .Range( _
.Range("a2"), .Range("a65536").End(xlUp))
If eCell > 3 And eCell < 7 Then _
eCell.EntireRow.OutlineLevel = eCell - 3
Next
End With
Next
End Sub
hth,
hector.
> assuming your column(range) is A2:A17 and you want to group-outline -?-
> try with a macro like this one:
[quoted text clipped - 34 lines]
>
>> I don't know any coding so if you could please assist me with this.