Small Paul
Board Regular
- Joined
- Jun 28, 2018
- Messages
- 118
Hi
I suspect there is a simple answer to this but I cannot find it!
I have a sheet with a variable number of rows. I have totals at the bottom of columns J & K. I then have a combined total in column J - offset(0,2).
I need to merge the cell in J with the adjacent cell in K.
I have tried the following (and permutations thereof):
PLEASE, don't laugh at my attempts!!!!
Any guidance would be appreciated.
Thanks
Small Paul.
I suspect there is a simple answer to this but I cannot find it!
I have a sheet with a variable number of rows. I have totals at the bottom of columns J & K. I then have a combined total in column J - offset(0,2).
I need to merge the cell in J with the adjacent cell in K.
I have tried the following (and permutations thereof):
Code:
Range("J" & Rows.Count).End(xlUp).Offset(2, 0).FormulaR1C1 = "=SUM(R[-2]C10:R[-2]C11)"
'Range(cells(ActiveCell), cells(0, 1)).Merge
Range(0, 0)(0, 1).Merge
'For Each cl In Range("J1:K500")
'If IsEmpty(cl.Offset(1)) Then
'Range(Selection, Selection.End(xlDown)(0, 1)).Select
'Selection.Merge
Any guidance would be appreciated.
Thanks
Small Paul.