Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 300
Default Store text file in workbook?

In an add-in I'm developing I'd like to pop up a user form that displays a
text file. The text file I want to display is a preformatted table about 20
rows by 40 columns. I have the user form set to a monospaced font.

I thought about putting all the text into a single cell. But I couldn't
easily put the carriage returns where I want them. It likes to do its own
wrapping to fit the cell.

I see I can insert a WordPad object onto a worksheet, but better would be a
NotePad object.

What's the best way to handle this?

My next question will be how to print this text file, but how I end up
storing it has to come first.

Don <donwiss at panix.com.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Store text file in workbook?

Don,
What about a RichTextText box on the user form ?

NickHK

"Don Wiss" wrote in message
...
In an add-in I'm developing I'd like to pop up a user form that displays a
text file. The text file I want to display is a preformatted table about

20
rows by 40 columns. I have the user form set to a monospaced font.

I thought about putting all the text into a single cell. But I couldn't
easily put the carriage returns where I want them. It likes to do its own
wrapping to fit the cell.

I see I can insert a WordPad object onto a worksheet, but better would be

a
NotePad object.

What's the best way to handle this?

My next question will be how to print this text file, but how I end up
storing it has to come first.

Don <donwiss at panix.com.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 300
Default Store text file in workbook?

On Tue, 28 Sep 2004 13:48:59 +0800, NickHK wrote:

Don Wiss wrote:
In an add-in I'm developing I'd like to pop up a user form that displays a
text file. The text file I want to display is a preformatted table about 20
rows by 40 columns. I have the user form set to a monospaced font.

I thought about putting all the text into a single cell. But I couldn't
easily put the carriage returns where I want them. It likes to do its own
wrapping to fit the cell.

I see I can insert a WordPad object onto a worksheet, but better would be a
NotePad object.

What's the best way to handle this?


What about a RichTextText box on the user form ?


Why? A textbox works just fine. As long as I have my source data in a
single file. Are you saying a richtextbox can take data coming from
multiple spreadsheet cells?

Don <donwiss at panix.com.
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 300
Default Store text file in workbook?

On Tue, 28 Sep 2004 13:48:59 +0800, NickHK wrote:

What about a RichTextText box on the user form ?


What is a RichTextText box? I didn't see it in the User Form Toolbox.

Don <donwiss at panix.com.
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Store text file in workbook?

Hi Don,

What is a RichTextText box?


See MSDN:

http://tinyurl.com/59rkf

I didn't see it in the User Form Toolbox.


Tools | Additional Controls | Check Microsoft Rich TextBox Control | OK


---
Regards,
Norman



"Don Wiss" wrote in message
...
On Tue, 28 Sep 2004 13:48:59 +0800, NickHK wrote:

What about a RichTextText box on the user form ?


What is a RichTextText box? I didn't see it in the User Form Toolbox.

Don <donwiss at panix.com.





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 300
Default Store text file in workbook?

On Wed, 29 Sep 2004, Norman Jones wrote:

What is a RichTextText box?


See MSDN:

http://tinyurl.com/59rkf


Okay. Thanks. But I don't see how this helps me. I don't want to load the
text from a file. I want the add-in to be self contained. I don't need any
of these extra features. I don't even need scroll bars, as all of the text
will fit inside a large textbox.

I suppose I can put the text with each line in a worksheet cell, then write
a macro that reads the cells putting carriage return-line feed pairs
between each line.

Don <donwiss at panix.com.
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Store text file in workbook?

Hi Don,

My post was intended to address your two specific questions concerning the
nature and availability of a RichTextBox rather than to respond to
substantive issues raised in the earlier strands of your thread, which I had
not followed.

---
Regards,
Norman



"Don Wiss" wrote in message
...
On Wed, 29 Sep 2004, Norman Jones wrote:

What is a RichTextText box?


See MSDN:

http://tinyurl.com/59rkf


Okay. Thanks. But I don't see how this helps me. I don't want to load the
text from a file. I want the add-in to be self contained. I don't need any
of these extra features. I don't even need scroll bars, as all of the text
will fit inside a large textbox.

I suppose I can put the text with each line in a worksheet cell, then
write
a macro that reads the cells putting carriage return-line feed pairs
between each line.

Don <donwiss at panix.com.



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
How to store a connection with parameters into a workbook Tom Edelbrok Excel Discussion (Misc queries) 0 November 9th 09 07:16 PM
Can I store a pointer to a word file? Ausum Excel Discussion (Misc queries) 7 January 20th 09 03:46 PM
Store Active Workbook [email protected] Excel Discussion (Misc queries) 0 March 28th 07 03:30 PM
store inventory sheet(ex:sports equipment store) vardan Excel Worksheet Functions 1 October 11th 06 12:51 AM
Copying store numbers and pasting them into a seperate workbook punter Excel Discussion (Misc queries) 2 May 26th 06 11:24 PM


All times are GMT +1. The time now is 09:28 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"