excel - data merger in two cells

  • Thread starter Thread starter babu
  • Start date Start date
B

babu

I have a data spread in a column upto 1000 cells (A1 to
A1000). I need to merge data from two consecutive cells
(for exapmle A1 and A2; A3 and A4, and so on) into one
cell for all of them.

I would appreicate if a formula is avilable in Excel.

thanks
Babu
 
Sub AAAA()
Dim i As Long
Application.DisplayAlerts = False
For i = 1 To 1000 Step 2
Cells(i, 1).Resize(2).Merge
Next
Application.DisplayAlerts = True
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top