C
c mateland
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
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