![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Microsoft Office support MS Office support forum |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Feb 2005
Posts: 139
OS: W7 x64 - Backup PC: XP-SP3
|
Word 2007 - Copy Text From Website, but remove table format?
Hi,
This is likely a very simple problem but I have been trying to achieve this with no avail. But I have Word 2007 and I am wanting to copy and paste to word the entire text from a webpage and have it contain all of its other text formatting (i.e Bolding, Bulletting etc). However I want to remove all of the tables structure format that websites seem to use for a page of text. I am doing the webpage copy via simply scrolling and highlinting all of the text on the page that I need and then choosing copy and paste into word 2007. Specifically because I wish to print out to read offline the text from a website and not waste any paper that the table format is causing. However currently when I copy and paste the text from an entire webpage I am needing to spend some time fiddling removing all the text from inside numerous (and also invisible) tables just to get the perfect full page printout with no wastage. Therefore can I ask is there anyway I can just copy and paste the text and have it turn out as a normal word formatted document without the tables. I have tried interim copying from the Website > Notepad > Word 2007 and this does remove the problem with the tables being copied. However Notepad is also removing all of the needed text formatting such as Bullets and Bolding. So are there any other easy suggestions to achieve this. Thanks Anthony Last edited by Anthony1uk; 10-31-2007 at 02:02 PM. |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Registered User
Join Date: Oct 2007
Posts: 13
OS: Windows 2003
|
Re: Word 2007 - Copy Text From Website, but remove table format?
Copy the web page, paste into Word using Edit / Paste Special / Rich Text Format
This will give you a table but not a bunch of HTML stuff. Then select the table and use Table / Convert / Table To Text You will still have some clean up to do but hopefully this will be much less work for you. |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Join Date: Sep 2009
Posts: 1
OS: Windows 7
|
Re: Word 2007 - Copy Text From Website, but remove table format?
This quick macro will remove the table format - it's set up in a loop for 399 tables but you can adjust that by changing the counter numbers.
' TableToText Macro Dim Check, Counter Check = True: Counter = 0 ' Initialize variables. Do ' Outer loop. Do While Counter < 400 ' Inner loop. Selection.GoTo What:=wdGoToTable, Which:=wdGoToNext, Count:=1, Name:="" Selection.Find.ClearFormatting With Selection.Find .Text = "" .Replacement.Text = "" .Forward = True .Wrap = wdFindContinue .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Rows.ConvertToText Separator:=wdSeparateByTabs, NestedTables:= _ True Counter = Counter + 1 ' Increment Counter. If Counter = 399 Then ' If condition is True. Check = False ' Set value of flag to False. Exit Do ' Exit inner loop. End If Loop Loop Until Check = False ' Exit outer loop immediately. End Sub Last edited by David M C; 09-01-2009 at 10:59 AM. |
|
|
|
|
|
#4 (permalink) |
|
Registered User
Join Date: Feb 2005
Posts: 139
OS: W7 x64 - Backup PC: XP-SP3
|
Re: Word 2007 - Copy Text From Website, but remove table format?
Thanks for this David.
I had totally forgot I had started this topic. My need for it has lapsed. But I may possibly need it again in the future. |
|
|
|
![]() |
| Thread Tools | |
|
|