Hi All,
I'm trying to merge some cells in excel from access vba. I've tried a few different ways now and nothing seems to work.
Here's what i've got...
... but when i open the wb the cells are not merged??
anyone??
Thanks,
Spin.
I'm trying to merge some cells in excel from access vba. I've tried a few different ways now and nothing seems to work.
Here's what i've got...
Code:
xlSht1.Range("A2:C2").Merge
xlSht1.Range("A2:C2").MergeCells = True
xlSht1.Range("a2:C2").Merge Across:=True
xlSht1.Range(xlSht1.Cells(2, 1), xlSht1.Cells(2, 3)).Merge
... but when i open the wb the cells are not merged??
anyone??
Thanks,
Spin.