J
john-lau
Hello
I have one excel book , which have 30 sheets (28 sheets are named as differen
account manager's name)
1 sheet name as "summary" , last sheet name as "system data
I would like to use macro to change relative reference to absolute referenc
(only column absolute!!) on sheet"summary"
May I ask how to modify the following code to achieve absolute referenc
:column). Thank
Sub CycleAbsRel(
Dim inRange as Range, oneCell As Rang
Static absRelMode As Lon
absRelMode = (absRelMode Mod 4) +
Set inRange = Selection.SpecialCells(xlCellTypeFormulas
If Not (inRange Is Nothing) The
For Each oneCell In inRang
With oneCel
.FormulaR1C1 = Application.ConvertFormula(.FormulaR[1]C1, xlR1C1, xlR1C1
absRelMode, oneCell
End Wit
Next oneCel
End I
End Sub
I have one excel book , which have 30 sheets (28 sheets are named as differen
account manager's name)
1 sheet name as "summary" , last sheet name as "system data
I would like to use macro to change relative reference to absolute referenc
(only column absolute!!) on sheet"summary"
May I ask how to modify the following code to achieve absolute referenc
:column). Thank
Sub CycleAbsRel(
Dim inRange as Range, oneCell As Rang
Static absRelMode As Lon
absRelMode = (absRelMode Mod 4) +
Set inRange = Selection.SpecialCells(xlCellTypeFormulas
If Not (inRange Is Nothing) The
For Each oneCell In inRang
With oneCel
.FormulaR1C1 = Application.ConvertFormula(.FormulaR[1]C1, xlR1C1, xlR1C1
absRelMode, oneCell
End Wit
Next oneCel
End I
End Sub