TryingToLearn
Well-known Member
- Joined
- Sep 10, 2003
- Messages
- 733
My project has many named ranges and I'm creating formulas in various cells based on their addresses. The issue is these evaluate to absolute formulas where I need mixed. Is there any way to accomplish this?
example:
evaluates to: =$G$149+SUM($I$135:$I$149)
Then:
results in: =G149+SUM(I135:I149)
Is there any way through VBA I can end up with: =G149+SUM(I$135:I149)
example:
Code:
tgtF = "=" & Range(Cells(Target.Row, _
Range("runbal").Column).Address).Address & "+" & "Sum(" & OutRng.Address & ")"
Then:
Code:
tgtF.Formula = Application.ConvertFormula(tgtF.Formula, xlA1, xlA1, xlRelative)
Is there any way through VBA I can end up with: =G149+SUM(I$135:I149)