Right now I have this code for automatically numbering my index according to what sheets are visible/not visible:
And the index currently looks like this:
What I want to do is re-write the above code to allow extra spacing between the rows starting at row 12 to allow room for a description to be added (will be set up to automatically be added according to the A3 value of each sheet).
Here is how I would like the end result to appear... with the index numbering still being automatic:
Thanks again in advance.... you guys are lifesavers!!!
Code:
Sub IndexNumber()
Dim lx As Long
Dim sIndex As String
Dim sIndexStartRange As String
Dim lVisibleCount As Long
sIndex = "Index"
sIndexStartRange = "A7"
Worksheets(sIndex).Range("A7:A100").Cells.ClearContents
With Worksheets(sIndex).Range("A7")
For lx = 1 To Worksheets.Count
Select Case Worksheets(lx).Name
Case Else
If Worksheets(lx).Visible = True Then
lVisibleCount = lVisibleCount + 1
End If
If Worksheets(lx).Visible = True Then .Offset(lx - 1, 0) = lVisibleCount
End Select
Next
End With
End Sub
And the index currently looks like this:
What I want to do is re-write the above code to allow extra spacing between the rows starting at row 12 to allow room for a description to be added (will be set up to automatically be added according to the A3 value of each sheet).
Here is how I would like the end result to appear... with the index numbering still being automatic:
Thanks again in advance.... you guys are lifesavers!!!