?
Solved

multiline textbox and excel cell

Posted on 2005-03-20
2
Medium Priority
?
401 Views
Last Modified: 2012-08-13
hi all
i have a simple yet complicated question . it concerns the multiligne property of a textbox. here it is my problem:
i have a text65(it is a text box that has the option multiline set to true) and i want to transfert the content( which can be from 3 to 10 lines separated by enter) to a cell from excell sheet. now the thing that i cant make work is :
when i transfet it with this line:
.cell(4,5).value=form1.text65.text
it does it but it puts it in one cell which means that the cell becomes huge and compact and i cant make much sens of it . what i want it to do is to start writeing from that specific cell but not to put it in one cell and to make it available over multiple cells so that it appears as a normal text line.
thank you
0
Comment
Question by:calin131
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 5

Accepted Solution

by:
dr_binks earned 375 total points
ID: 13588270
I think this should work:

dim arrayoftext() as string

arrayoftext() = split(text6,vbcrlf)

for x=0 to ubound(arrayoftext())
   .cell(4,x+5).value = arrayoftext(x)
next

if you need any of that explaining, just ask.

hope that helps

~Binks
0
 
LVL 5

Expert Comment

by:dr_binks
ID: 13588272
correction

arrayoftext() = split(text6,vbcrlf)
 should be:
arrayoftext() = split(text65,vbcrlf)
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses
Course of the Month15 days, 10 hours left to enroll

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question