Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
| Search | Today's Posts | Mark Forums Read
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 28th, 2004, 02:25 PM
Authorized User
 
Join Date: Aug 2003
Location: , PA, USA.
Posts: 24
Thanks: 0
Thanked 1 Time in 1 Post
Default Wrap text with merged cells

i have two merged cells in a row. I have set the wrap text property. But wrap text doesn't work. If it is not a merged cell wrap text works fine. Could some one help me with a way out to use wrap text property with merged cells.

Help will be appreciated.

Ajitpal S Padda
__________________
Ajitpal S Padda
 
Old January 29th, 2004, 04:27 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: , , Finland.
Posts: 168
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

You can wrap text by using ALT+ENTER in a cell.
For example:
This is<- Here press ALT+ENTER
example

vemaju


 
Old January 29th, 2004, 08:50 AM
Authorized User
 
Join Date: Aug 2003
Location: , PA, USA.
Posts: 24
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thanks for your reply. That works fine if the cells are not merged. But i have merged cells and moreover it is a VBA application and i want to setup in a way that it should'nt be a manual way.



Ajitpal S Padda
 
Old January 29th, 2004, 09:45 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

What's wrong with your version of Excel? Wrapping works with merged cells!

Try this as an example:
Type QWERTYUIOPASDFGHJKLZXCVBNM into cell A1
select cells A1 and B1
choose Format > Cells
on the Alignment tab check both Merge cells and Wrap text
Click OK

what happens?
 
Old January 29th, 2004, 03:02 PM
Authorized User
 
Join Date: Aug 2003
Location: , PA, USA.
Posts: 24
Thanks: 0
Thanked 1 Time in 1 Post
Default

That's really strange.. I tried the same but wrap text text doesn't. work. Yes, if i dont have merged cells then wrap text works perfect. I m working with office XP. Meanwhile i shall try to find some other version and see if it works. Thanks!

Quote:
quote:Originally posted by pgtips
 What's wrong with your version of Excel? Wrapping works with merged cells!

Try this as an example:
Type QWERTYUIOPASDFGHJKLZXCVBNM into cell A1
select cells A1 and B1
choose Format > Cells
on the Alignment tab check both Merge cells and Wrap text
Click OK

what happens?
Ajitpal S Padda




Similar Threads
Thread Thread Starter Forum Replies Last Post
Wrap Text sams ASP.NET 1.0 and 1.1 Professional 0 September 20th, 2007 02:12 AM
Merged cells when exporting a report to excel bea Reporting Services 0 June 22nd, 2007 09:18 AM
Autofit Merged cells mls Beginning VB 6 1 April 29th, 2006 08:26 PM
split cells up if merged crmpicco Excel VBA 4 May 4th, 2005 10:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.