Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 28th, 2004, 01: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
Reply With Quote
  #2 (permalink)  
Old January 29th, 2004, 03: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


Reply With Quote
  #3 (permalink)  
Old January 29th, 2004, 07: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
Reply With Quote
  #4 (permalink)  
Old January 29th, 2004, 08: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?
Reply With Quote
  #5 (permalink)  
Old January 29th, 2004, 02: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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 07:25 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.