Hi c mateland
Save the Notepad file (txt)
On this page there is a code example to open the txt file in Excel with VBA
http://www.rondebruin.nl/csv.htm
See this part
Workbooks.OpenText Filename
Record a macro when you do it manual to see the code you need
--
Regards Ron de Bruin
http://www.rondebruin.nl
"c mateland" wrote in message oups.com...
Excel 2003
In Internet Explorer, I view the source code of my Web page in Notepad,
then copy that text and paste it into an Excel worksheet.
Excel gives me only two choices in Paste Special (text and unicode),
both of which causes a problem. They both paste as interpreted HTML
code and so my worksheet tries to render as a Web page. I don't want
that.
So after pasting and after the rendering, I click the paste option
button that appears, and choose "Use text import wizard". In the wizard
I choose "Fixed Width" and click Finish. The HTML code now appears in
my worksheet correctly as HTML code (text).
I want this clipboard-pasting routine in VBA, but can't figure it out.
It won't record the paste option button, so that's no help.
How do I paste using VBA as described above or using another paste
method where I get all the source code text on my clipboard into a
worksheet as text?
Many thanks,
Chuck