Originally Posted by
Norie
Shazam
Do you mean you want to format each cell in the columns with dates in row 1 as Accounting?
Yes,
So far I got this and it works. It looks for the text "Last Week" and place the format minus one column where the dates are at.
With ActiveSheet
lastRow = .Cells(.Rows.Count, 1).End(xlUp).Row
Set yRng = .Range("2:2") Set y = yRng.Find("Last Week")
Set rngFirst = y
Do
Set y = yRng.FindNext(y)
Range(y.Offset(0, -1), .Cells(lastRow, y.Column - 1)).NumberFormat = _
"_(* #,##0.00_);_(* (#,##0.00);_(* ""-""??_);_(@_)"
Loop Until y.Address = rngFirst.Address
End With
Edited 20-Jul-06 by geekgirlau. Reason: insert line breaks