Paste text from webpages into cells and keep formats

  • Thread starter Thread starter Karsten Wutzke
  • Start date Start date
K

Karsten Wutzke

Subject basically says it all... I always get new formats (frames,
alignment etc.).

Is there a way for the whole Excel sheet to only paste the contents
and not having to go via the right click menu + dialog to paste only
the contents?

I'm collecting data for an application like addresses, emails, URLs
and it's pretty annoying that the formats are changed every time when
pasting.

Maybe there's an option that I can't find??

TIA
Karsten
 
it's pretty annoying that the formats are changed every time when pasting.

Agreed but I don't a way to get Excel to default to destination format.

I recorded a macro while pasting and switching to destination format and I
got this, which seems to do the job:


Sub Macro1()
ActiveSheet.PasteSpecial Format:="HTML", Link:=False, DisplayAsIcon:= _
False, NoHTMLFormatting:=True
End Sub



--
Jim
| Subject basically says it all... I always get new formats (frames,
| alignment etc.).
|
| Is there a way for the whole Excel sheet to only paste the contents
| and not having to go via the right click menu + dialog to paste only
| the contents?
|
| I'm collecting data for an application like addresses, emails, URLs
| and it's pretty annoying that the formats are changed every time when
| pasting.
|
| Maybe there's an option that I can't find??
|
| TIA
| Karsten
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top