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 Search this Thread Display Modes
  #1 (permalink)  
Old March 12th, 2007, 11:18 AM
Authorized User
 
Join Date: Mar 2007
Location: , , Netherlands.
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????
Reply With Quote
  #2 (permalink)  
Old March 12th, 2007, 11:27 PM
Friend of Wrox
Points: 3,060, Level: 23
Points: 3,060, Level: 23 Points: 3,060, Level: 23 Points: 3,060, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2005
Location: , , .
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
Reply With Quote
  #3 (permalink)  
Old March 14th, 2007, 03:03 PM
Authorized User
 
Join Date: Mar 2007
Location: , , Netherlands.
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

Reply With Quote
  #4 (permalink)  
Old March 19th, 2007, 03:04 PM
Registered User
 
Join Date: Mar 2007
Location: , , .
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

Reply With Quote
  #5 (permalink)  
Old March 31st, 2007, 06:28 AM
Friend of Wrox
Points: 3,060, Level: 23
Points: 3,060, Level: 23 Points: 3,060, Level: 23 Points: 3,060, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2005
Location: , , .
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
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



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


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