close

I have hundreds of email addresses in Word format. I would like to import
them into Excel and have them appear on different rows. When I copy and
paste all the new additions go to one row. When I import a special object it
stays in a box that floats.

Not familiar with the effect you describe, but one thing I would try
would be to use Pure Text to convert the data in the clipboard to
plain text and then paste that. Even if it doesn't help you to this
problem -- it is a utility that you will use often.

PureText,2.0, Steve P.Miller, paste copied text as simple text into another
application without getting all the formatting from the original source
www.stevemiller.net/puretext/

it will remove hyperlinks, and remove all cell formatting leaving only text,
it will preserve new lines, so it should paste to separate rows.
if the original data was in separate rows.
--
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: www.mvps.org/dmcritchie/excel/excel.htm
Search Page: www.mvps.org/dmcritchie/excel/search.htm

quot;Big Johnquot; lt;Big gt; wrote in message ...
gt; I have hundreds of email addresses in Word format. I would like to import
gt; them into Excel and have them appear on different rows. When I copy and
gt; paste all the new additions go to one row. When I import a special object it
gt; stays in a box that floats.


quot;Big Johnquot; wrote:

gt; I have hundreds of email addresses in Word format. I would like to import
gt; them into Excel and have them appear on different rows. When I copy and
gt; paste all the new additions go to one row. When I import a special object it
gt; stays in a box that floats.Thanks very much for the help. It was hidden formatting that was the
problem. I had solved the problem by going through my list and hitting enter
after every address. There were hidden spaces and hidden open lines. Once I
had the list sanitized, it went right in. I am going to try pure text,
because it sounds like it would do the work for you. Thanks again.

Hi John,
For the problem you just described, TrimALL macro would
have solve your problem -- didn't sound like same problem when
you first described it.
www.mvps.org/dmcritchie/excel/join.htm#trimall

You might have to get more information on what to remove or change with the
newlines problem. Excel only uses CHAR(10) so you would have
to figure out what to to with CHAR(13). (CRLF is x'0D0A)

Don't just remove them as you would at least need a space, you might do
something in a new subroutine (different name) that incorporates everyting in
the TrimALL macro plus the following::

Selection.Replace What:=Chr(13)amp;Chr(10), Replacement:=Chr(32), _
LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Selection.Replace What:=Chr(13, Replacement:=Chr(32), _
LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
Selection.Replace What:=Chr(10), Replacement:=Chr(32), _
LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: www.mvps.org/dmcritchie/excel/excel.htm
Search Page: www.mvps.org/dmcritchie/excel/search.htm

quot;Big Johnquot; gt; wrote in message ...
gt;
gt;
gt; quot;Big Johnquot; wrote:
gt;
gt; gt; I have hundreds of email addresses in Word format. I would like to import
gt; gt; them into Excel and have them appear on different rows. When I copy and
gt; gt; paste all the new additions go to one row. When I import a special object it
gt; gt; stays in a box that floats.
gt;
gt;
gt; Thanks very much for the help. It was hidden formatting that was the
gt; problem. I had solved the problem by going through my list and hitting enter
gt; after every address. There were hidden spaces and hidden open lines. Once I
gt; had the list sanitized, it went right in. I am going to try pure text,
gt; because it sounds like it would do the work for you. Thanks again.

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()