Wrox Programmer Forums
|
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 August 9th, 2003, 12:44 PM
Registered User
 
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to kasimg Send a message via Yahoo to kasimg
Default Excel-Visual basic

I am facing problem of merging data and wrapping the text
Right now it just wraps the data however I want the text go to specific number of column and then continue on next line in the same cell



Kasim Gaya
 
Old August 9th, 2003, 03:39 PM
Authorized User
 
Join Date: Aug 2003
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Kasim Gaya,

To wrap test in a cell use the vbLF command (visual basic line-feed).

For instance, to place the text: "The clients are:"
                                  "(1) John Smith"
                                  "(2) Jane Doe"

To occur on different lines within a cell, you would enter:

     ActiveCell.Value = "The clients are:" & vbLf & _
                        "(1) John Smith" & vbLf & _
                        "(2) Jane Doe"

Note: The underscore is a command continuation character.

For more info recommend www.vba-programmer.com

CarlR







Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP in Visual Studio 2005 Pro (Visual Basic) shoopes VB How-To 1 June 29th, 2006 02:08 PM
Using Visual Basic behind Excel Control Buttons Danielle Beginning VB 6 0 January 10th, 2006 06:32 AM
Visual basic excel application momowu0701 Beginning VB 6 1 December 15th, 2005 01:44 PM
visual basic in excel help me pakmaniac Access VBA 2 January 2nd, 2004 10:55 AM
Manipulating Excel spreadsheet in Visual Basic dreaming VB How-To 8 November 20th, 2003 11:36 AM





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