Hi _______,
Source: an unspecified web page, copied (ctrl+c) using IE
Excel will attempt to format anything that resembles a date as a date,
which is not too bad for manual entry, since you can format the cells as text
ahead of time.
It may not be clear in each of the following, but format your cells ahead of time
as text.
Manual entry:
You have to format the cells as text *before* you enter data into a cell.
Reading a file:
When you Export data, save the file as .txt instead of .csv then
when you import the file you will be given a choice of your formatting --
choose text for such columns. The "file import wizard" and the
"text to columns" work exactly the same see use of text to columns later.
Cut and Paste: from HTML that was not generated from Excel or MS Office
Don't think you can do anything, even though you format your Excel sheet
as text ahead of time. Excel will attempt to format many numbers with two
or less hyphens as dates.
You might with some data be able to paste to notepad, then from notepad
cut and paste to Excel. It might paste as wanted. OR it might paste all
to one column.
If it pastes all to one column then use Data, Text to columns,
choose delimited,
indicate delimiters and treat multiple spaces as one;
choose which columns are text.
But in my test today it propagated to each cell using the tab character
that was retained in notepad.
Avoid Notepad as a middle step:
If you have to do this often you can convert what you copied to text within the
clipboard using Pure Text
http://www.stevemiller.net/puretext/
free to use not to distribute
http://www.stevemiller.net and worth every penny.
My options are exactly as shown on the web page.
Feedback::
Maybe I missed something because you did use the word "paste", but
it did not seem like you were pasting anything.
Tell us what happened even if it worked. If it worked, which method.
And if it is a public page, tell us what page you are working with.
My system is Windows 2000, my Excel is Excel 2000.
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages:
http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page:
http://www.mvps.org/dmcritchie/excel/search.htm