V
Vince
I have a table in Word that I want to save in text format. Normally, when I
select the table and Copy (to clipboard) and paste it in (say) Notepad, the
table looks like this:
British authors Asia Europe Anglo-Saxon (exp. UK) Rest of world Total
1970s BJIR 79 13 2 94
84.0% 13.8% 2.1% 100%
IRJ 60 5 1 66
90.9% 7.6% 1.5% 100%
Total 139 18 3 160
86.9% 11.3% 1.9% 100%
1990s BJIR 142 5 10 36 2 195
72.8% 2.6% 5.1% 18.5% 1.0% 100%
IRJ 151 4 12 21 7 195
77.4% 2.1% 6.2% 10.8% 3.6% 100%
Total 293 9 22 57 9 390
75.1% 2.3% 5.6% 14.6% 2.3% 100%
which is what I want. However, when I tried to do this programatically with
a code like:
"
ST=selection.txt
FF = FreeFile
Open InputFile For Output As #FF
Print #FF, ST
Close (FF)
"
The file that is written ends up looking like this:
British authors
Asia
Europe
Anglo-Saxon (exp. UK)
Rest of world
Total
1970s
BJIR
79
13
2
94
84.0%
13.8%
2.1%
100%
IRJ
60
5
1
66
90.9%
7.6%
1.5%
100%
Total
139
18
3
160
86.9%
11.3%
1.9%
100%
1990s
BJIR
142
5
10
36
2
195
72.8%
2.6%
5.1%
18.5%
1.0%
100%
IRJ
151
4
12
21
7
195
77.4%
2.1%
6.2%
10.8%
3.6%
100%
Total
293
9
22
57
9
390
75.1%
2.3%
5.6%
14.6%
2.3%
100%
Could somebody please tell me how I could copy a table from word in ascii
format so that it would look the same way as it does when I do the process
manually (by copying and pasting). I tried replacing chr(11), chr(10) by
chr(9) but they also produce equally disastrous results.
I would appreciate any help on this.
Thanks a lot,
Vince
select the table and Copy (to clipboard) and paste it in (say) Notepad, the
table looks like this:
British authors Asia Europe Anglo-Saxon (exp. UK) Rest of world Total
1970s BJIR 79 13 2 94
84.0% 13.8% 2.1% 100%
IRJ 60 5 1 66
90.9% 7.6% 1.5% 100%
Total 139 18 3 160
86.9% 11.3% 1.9% 100%
1990s BJIR 142 5 10 36 2 195
72.8% 2.6% 5.1% 18.5% 1.0% 100%
IRJ 151 4 12 21 7 195
77.4% 2.1% 6.2% 10.8% 3.6% 100%
Total 293 9 22 57 9 390
75.1% 2.3% 5.6% 14.6% 2.3% 100%
which is what I want. However, when I tried to do this programatically with
a code like:
"
ST=selection.txt
FF = FreeFile
Open InputFile For Output As #FF
Print #FF, ST
Close (FF)
"
The file that is written ends up looking like this:
British authors
Asia
Europe
Anglo-Saxon (exp. UK)
Rest of world
Total
1970s
BJIR
79
13
2
94
84.0%
13.8%
2.1%
100%
IRJ
60
5
1
66
90.9%
7.6%
1.5%
100%
Total
139
18
3
160
86.9%
11.3%
1.9%
100%
1990s
BJIR
142
5
10
36
2
195
72.8%
2.6%
5.1%
18.5%
1.0%
100%
IRJ
151
4
12
21
7
195
77.4%
2.1%
6.2%
10.8%
3.6%
100%
Total
293
9
22
57
9
390
75.1%
2.3%
5.6%
14.6%
2.3%
100%
Could somebody please tell me how I could copy a table from word in ascii
format so that it would look the same way as it does when I do the process
manually (by copying and pasting). I tried replacing chr(11), chr(10) by
chr(9) but they also produce equally disastrous results.
I would appreciate any help on this.
Thanks a lot,
Vince