Hi,
I have a sheet in which I want to find certain text in VBA, for example "TEST" in a cell in column A.
Once I have found the cell containing the text I then want to merge that cell with all the cells to the right up to column H.
I know how to find the cell which contains the text but then I'm unsure how to merge with the next 7 cells to the right of it.
Help much appreciated.
Ab304
I have a sheet in which I want to find certain text in VBA, for example "TEST" in a cell in column A.
Once I have found the cell containing the text I then want to merge that cell with all the cells to the right up to column H.
Code:
Dim l As Long
l = Application.WorksheetFunction.Match("TEST", Range("A1:A100"), 0)
I know how to find the cell which contains the text but then I'm unsure how to merge with the next 7 cells to the right of it.
Help much appreciated.
Ab304