missprogrammer
Programmer
I'm having problems with my code, Im getting a compile error
next without for. What am i missing I trying to loop the code through the workbook on all the sheets
Please help,Thanks in advance
Private Sub CenterCells()
Dim c As Integer
For c = 1 To ActiveWorkbook.Sheets.Count
With ActiveWorkbook.Sheets(c)
Range("B1:AE48"
.HorizontalAlignment = xlCenter
' Range("B1:AE48"
.VerticalAlignment = xlBottom
' Range("B1:AE48"
.Orientation = 0
' Range("B1:AE48"
.AddIndent = False
' Range("B1:AE48"
.ShrinkToFit = False
' Range("B1:AE48"
.MergeCells = False
Next c
End With
End Sub
next without for. What am i missing I trying to loop the code through the workbook on all the sheets
Please help,Thanks in advance
Private Sub CenterCells()
Dim c As Integer
For c = 1 To ActiveWorkbook.Sheets.Count
With ActiveWorkbook.Sheets(c)
Range("B1:AE48"
' Range("B1:AE48"
' Range("B1:AE48"
' Range("B1:AE48"
' Range("B1:AE48"
' Range("B1:AE48"
Next c
End With
End Sub