LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default TextBox copying not like windows copying, heh?

Hi,

I have a question that Google didn't answer, nor did the numerous PDF I have
about excel programming, and of course, nor did my boss ;)


Here you go!


I have an Excel 2003 workbook with a sheet.
I have a user form.
I have a TextBox in that user form.
I also have a text file outside of Excel.


When I copy paste manually the text file into any cell in the sheet, the
text file gets spreads onto the cells pretty good - You know, most of the
data has its own cell, etc., it looks decent enough to attempt to write a
parser -by the way, my boss told me "its either write a parser or parse the
327 word doc manually into excel" so of course, I feel constrained to ask for
help ...

The problem arise when I have the text file pasted into the user form text
box and then try to have a macro do some parsing. You see, the user gets to
paste from the windows clipboard (in this case a 327 page word doc that I
pasted into a text file first) into the user form textbox, and then press the
Parse! button. The button calls a Parse macro that I wrote in another module.


But when the textbox.text gets copied into a cell with code like ...

myTemp.Range(A7).Value = sData

All the text gets fitted into one cell.


I am trying to reproduce the effect that I get when I manually copy a text
file into a cell : it gets spread into many cells more or less in a readable
fashion.

So my Question is: How do I achieve this effect in coding?

Thank you for your help, kindly,

Antoine Dubuc
Best Buy For Business

 
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
copying the Hyperlink function result without copying the actual formula mcheng Excel Worksheet Functions 2 June 9th 07 02:43 AM
Copying text from regular textbox Greiffenberg Excel Programming 10 July 19th 05 06:46 PM
textbox value copying dok112[_23_] Excel Programming 2 August 11th 04 02:39 AM
Copying Text from TextBox into cells in table and then addign a new row cakonopka[_2_] Excel Programming 1 January 30th 04 04:43 PM
Copying TEXT from Textbox to other location jason Excel Programming 2 September 29th 03 01:29 PM


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

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

About Us

"It's about Microsoft Excel"