Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
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 March 12th, 2007, 11:18 AM
Authorized User
 
Join Date: Mar 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Displaying text in textbox

I'm very new to VBA and would appreciate any help.

I'm trying to display several lines of text in a text box, using & vbcrlf at the end of each line.
However, the text only appears on one line and scrolls left and right.

Can anyone help me????
 
Old March 12th, 2007, 11:27 PM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Set the MultiLine property of the TextBox as True

You will Get it!!!

Cheers
Shasur

http://www.vbadud.blogspot.com
 
Old March 14th, 2007, 03:03 PM
Authorized User
 
Join Date: Mar 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Shasur, I knew it had to be something simple (or stupid) .

The lesson here is to look closer at the properties. I'll remember next time before bothering the computer community. :D

 
Old March 19th, 2007, 03:04 PM
Registered User
 
Join Date: Mar 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi
Would you know how to set the Multiline property programmatically after a text box has been added to a worksheet using the Controls toolbox? I've tried everything no luck...
Thanks greatly for any feedback

 
Old March 31st, 2007, 06:28 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Hi eParho

You can set the Multiline property programmatically

TextBox1.MultiLine = True

http://www.vbadud.blogspot.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying Text using CSS austinf CSS Cascading Style Sheets 3 October 11th, 2007 02:58 PM
Displaying binarydata as text audio-catalyst Classic ASP Professional 0 December 17th, 2005 06:30 AM
Displaying Data in TextBox From Database(Urgent) gadhiav ASP.NET 1.0 and 1.1 Basics 2 June 17th, 2004 12:20 AM
Displaying Data in Textbox from Database(URGENT) gadhiav Classic ASP Databases 1 June 16th, 2004 02:06 AM
Displaying Chinese in a TextBox AndrewF Beginning VB 6 1 May 19th, 2004 11:59 AM





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