Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 112
Default Textbox and multiline text

In my Excel purchase, order and invoice application I would like to use
predefined textblocks and insert them to the document Im creating.
I previously had an array created by the userform initialization that kept a
limited amount of predefined texts. I wanted to increase the number of text
blocks and decided to create a small database in a worksheet, attach it to
a combobox in the registration userform from where I chose the text block to
be inserted in a temporary text area, a named cell.
The chosen text blocks are copied to a multi line textbox in the userform
where I can stack several text blocks showing up in the final document.
This textbox is connected to the system page, a number of cells containing
all the information for an order or invoice. (When the document is finally
registered all the information is copied to a document database for later
retrieval.)

To use a database connected combobox worked well during creation but saving
and reopening the workbook and starting the registration, I get Exception
Occured as soon as I select one of the text blocks. I cannot find any
explanation to what Exception occurred really is, thus finding a way of
solving the problem.

Private Sub CBx407_AfterUpdate() The combobox
CBx407.Copy
End Sub

Private Sub Btn41TL_Click() The button copying the text block in focus
Range("TexTemp").Copy
TxB419.Paste
Application.CutCopyMode = False
End Sub

Private Sub TxB419_AfterUpdate() The textbox updates the system textline
cell
Range("_TL1") = TxB419.Text
End Sub

There is also another problem connected to the textblocks. If I retrieve a
saved document containing several lines of text it often happens that the
application freezes.
Im guessing that copying the stored information containing a multiline text
in a cell and pasting it to the cell that controls the textbox is the
problem. The textbox cannot manage to load a big chunk of text and display it.

Is there any decent way to solve this? It cannot be such an unusual task to
use a textbox when loading and displaying a lot of text!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Textbox text visibility bcelestia Excel Discussion (Misc queries) 2 January 11th 07 08:47 AM
import multiline data from text file Razorback76 Excel Discussion (Misc queries) 0 June 20th 06 06:13 AM
Legnth of text in textbox control rgarber50 Excel Discussion (Misc queries) 3 July 15th 05 02:18 PM
Need VBA code to enter text into a textbox !!!! Art Ferdinand Excel Discussion (Misc queries) 1 May 6th 05 01:47 PM
I have had trouble with textbox text to worksheet Thomas Excel Discussion (Misc queries) 1 March 10th 05 03:23 AM


All times are GMT +1. The time now is 06:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"