merge cells in Excel??

  • Thread starter Thread starter Amit
  • Start date Start date
A

Amit

Hi,

I have a strange problem/request regarding merging text in
Excel.

The Excel worksheet has columns for entering text data,
but whoever entered the data, continued the sentence on
the next row, as the column width is fixed, and s/he was
not aware of wrap-text property to keep the entire text in
one cell.

So, now a single text sentence is broken across multiple
cells, and the requirement is to consolidate/merge the
sentence into a single cell.

One (tedious) way is to copy-and-paste the spreadsheet
into a Word doc, and then merge cells.

I was wondering if there is any other way
simpler/faster/easier than the above to solve this
problem. I'm familiar with VB, but have only written code
for Access, not Excel/Word. So, if you have any
ideas/pointers, please let me know.

Thanks!

-Amit
 
Amit,

Select the cells that the text is in and then click the Format on th
toolbar and select Cells Alignment MergeCells.


HTH

Charle
 
Use this instead.

Sub CenterAcross()
Selection.HorizontalAlignment = xlCenterAcrossSelection
End Sub
 
Yes, this is exactly what I was looking for.
Thanks for your response.

-Amit
 

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