PC Review


Reply
Thread Tools Rate Thread

Re: help me write this table retaining table spacing and formatting

 
 
deano
Guest
Posts: n/a
 
      5th Sep 2005
Dave,

is there any way to use the Print # method to wtite to a file a table
in which column spacing is not lost ?

 
Reply With Quote
 
 
 
 
Tim Williams
Guest
Posts: n/a
 
      5th Sep 2005
Plain text files don't have a concept of "tables" - just tabs and
spaces etc. If you want a table then you'll have to use a more
formatted approach (different file type) or pad all of your values
with spaces (even that won't work unless the app used to view the file
uses a fixed-width font)

Tim.


"deano" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Dave,
>
> is there any way to use the Print # method to wtite to a file a
> table
> in which column spacing is not lost ?
>



 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      5th Sep 2005
You want a fixed width file (like for importing to a mainframe file?):

Saved from a previous post:

There's a limit of 240 characters per line when you save as .prn files.

You have a few choices (try against a copy of your worksheet):

I'd either concatenate the cell values into another column:

=LEFT(A1&REPT(" ",5),5) & LEFT(B1&REPT(" ",4),4) & TEXT(C1,"000,000.00")

(You'll have to modify it to match what you want.)

Then I'd copy and paste to notepad and save from there. Once I figured out that
ugly formula, I kept it and just unhide that column when I wanted to export the
data.

If that doesn't work for you, maybe you could do it with a macro.

Here's a link that provides a macro:
http://google.com/groups?threadm=015...280a%40phx.gbl

deano wrote:
>
> Dave,
>
> is there any way to use the Print # method to wtite to a file a table
> in which column spacing is not lost ?


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why my line spacing is wider than everyone else (line spacing)? =?Utf-8?B?TWVsb2R5IEtvaA==?= Microsoft Word Document Management 5 13th Sep 2005 04:46 PM
Paste changes spacing / want to keep headers bold, and keep the normal spacing that I normallly have. =?Utf-8?B?VGF3cmVuYQ==?= Microsoft Word Document Management 2 21st May 2004 12:53 PM
Help! Help! Help! Help! Help! Help! Help! Help! Help! Help! Help! Help! Help! -$- Windows XP Internet Explorer 2 21st Dec 2003 11:45 PM
Re: Spacing between words spacing between words Thomas A. Rowe Microsoft Frontpage 0 20th Oct 2003 02:23 AM
Re: Spacing between words spacing between words Kathleen Anderson [MVP- FP] Microsoft Frontpage 0 20th Oct 2003 02:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:33 PM.