B
BEEJAY
Having recently read numerous posts about staying away from Select,
Selection, etc. I was able to greatly reduce a code set that I'm currently
working on.
However, I did run stuck on some, as well.
I tried to condense the following 6 lines to 3, without success.
Sheets("Contract").Select
Sheets("Contract").Copy Before:=Sheets(1)
Sheets("Contract (2)").Select
Sheets("Contract (2)").Name = "COM.CALC."
Sheets("COM.CALC.").Select
ActiveWorkbook.Sheets("COM.CALC.").Tab.ColorIndex = 9
' Sheets("Contract").CopyBefore:= Sheets (1)
' Sheets("Contract(2)").Name = "COM.CALC."
' Sheets("COM.CALC.").Tab.ColorIndex = 9
What am I not understanding here?
Also, various efferts on the following have been unsuccessful, as well.
I did try to use info I found in this ng, but perhaps the number of lines
are a problem.
How can something like the following be condensed?
Range("B26:E26").Select
Selection.Font.Size = 16
Selection.Font.Bold = True
Rows("26:26").RowHeight = 21#
With Selection
.HorizontalAlignment = xlCenterAcrossSelection
End With
With Selection.Interior
.ColorIndex = 40
.Pattern = xlSolid
End With
With some help on the above and hopefully some explanation, I can redo a
substantial number (in this module alone).
Thank-you
Selection, etc. I was able to greatly reduce a code set that I'm currently
working on.
However, I did run stuck on some, as well.
I tried to condense the following 6 lines to 3, without success.
Sheets("Contract").Select
Sheets("Contract").Copy Before:=Sheets(1)
Sheets("Contract (2)").Select
Sheets("Contract (2)").Name = "COM.CALC."
Sheets("COM.CALC.").Select
ActiveWorkbook.Sheets("COM.CALC.").Tab.ColorIndex = 9
' Sheets("Contract").CopyBefore:= Sheets (1)
' Sheets("Contract(2)").Name = "COM.CALC."
' Sheets("COM.CALC.").Tab.ColorIndex = 9
What am I not understanding here?
Also, various efferts on the following have been unsuccessful, as well.
I did try to use info I found in this ng, but perhaps the number of lines
are a problem.
How can something like the following be condensed?
Range("B26:E26").Select
Selection.Font.Size = 16
Selection.Font.Bold = True
Rows("26:26").RowHeight = 21#
With Selection
.HorizontalAlignment = xlCenterAcrossSelection
End With
With Selection.Interior
.ColorIndex = 40
.Pattern = xlSolid
End With
With some help on the above and hopefully some explanation, I can redo a
substantial number (in this module alone).
Thank-you