Group:  Microsoft Word » microsoft.public.word.docmanagement
Thread: Copy text results in unwanted entries in Document map and TOC

Geek News

Copy text results in unwanted entries in Document map and TOC
Menl 12/5/2008 9:15:00 AM
After migrating to Word 2007 we have the problem that when we select some
auto-generated text from a different program and paste it in another word
document it generates a lot of entries in the document map. I tried all I
could think of. I'll list the things I learned so you can maybe get a better
idea of whats going on.
- There are a lot of unwanted entries
- These entries are not coupled to a single style.
- These entries are not coupled or derived from a Heading style
- These entries are not influenced by the show level in the outline view
- In Office 2003 it works great
- When inserting the TOC and clicking options and deselecting the second
checkbox (just below the styles, sorry different language version here, so I
don't have the exact English caption) these entries don't show up in the TOC
but are still there in the outline.

It looks like Word does some auto formatting while pasting. How can you
prevent this. Any ideas are welcome.


Re: Copy text results in unwanted entries in Document map and TOC
grammatim <grammatim[ at ]verizon.net> 12/5/2008 2:58:39 PM
Office button > Paste > Paste Special > Unformatted Text

You can put this command on your QAT (Quick Access Toolbar) -- right-
click on the command.

On Dec 5, 4:15 am, Menl <M...[ at ]discussions.microsoft.com> wrote:
[Quoted Text]
> After migrating to Word 2007 we have the problem that when we select some
> auto-generated text from a different program and paste it in another word
> document it generates a lot of entries in the document map. I tried all I
> could think of. I'll list the things I learned so you can maybe get a better
> idea of whats going on.
> - There are a lot of unwanted entries
> - These entries are not coupled to a single style.
> - These entries are not coupled or derived from a Heading style
> - These entries are not influenced by the show level in the outline view
> - In Office 2003 it works great
> - When inserting the TOC and clicking options and deselecting the second
> checkbox (just below the styles, sorry different language version here, so I
> don't have the exact English caption) these entries don't show up in the TOC
> but are still there in the outline.
>
> It looks like Word does some auto formatting while pasting. How can you
> prevent this. Any ideas are welcome.

Re: Copy text results in unwanted entries in Document map and TOC
"Stefan Blom" <no.spam[ at ]please.xyz> 12/5/2008 3:00:39 PM
You can paste as unformatted text in order to to avoid bringing formatting
into the document. Note, however, that in this case it probably won't help,
because the Document Map itself may assign outline levels to text. For more,
see http://word.mvps.org/faqs/general/DocumentMap.htm.

--
Stefan Blom
Microsoft Word MVP



"Menl" <Menl[ at ]discussions.microsoft.com> wrote in message
news:77A47AE0-042B-48FA-BD42-F02E596E1EC7[ at ]microsoft.com...
[Quoted Text]
> After migrating to Word 2007 we have the problem that when we select some
> auto-generated text from a different program and paste it in another word
> document it generates a lot of entries in the document map. I tried all I
> could think of. I'll list the things I learned so you can maybe get a
> better
> idea of whats going on.
> - There are a lot of unwanted entries
> - These entries are not coupled to a single style.
> - These entries are not coupled or derived from a Heading style
> - These entries are not influenced by the show level in the outline view
> - In Office 2003 it works great
> - When inserting the TOC and clicking options and deselecting the second
> checkbox (just below the styles, sorry different language version here, so
> I
> don't have the exact English caption) these entries don't show up in the
> TOC
> but are still there in the outline.
>
> It looks like Word does some auto formatting while pasting. How can you
> prevent this. Any ideas are welcome.
>
>



Re: Copy text results in unwanted entries in Document map and TOC
Menl 12/5/2008 3:19:01 PM
Unformatted text won't be OK as I need the formatting. It should just avoid
getting it into the document map.

I dug a bit deeper and found that the document map entries are entered when
exporting this text from another program. In Word 2003 these entries are not
created only in Word 2007.

I can get the entries to dissapear by reapplying the standard format, but as
most entries use a different style, this is quite a lot of work.

So there are two approaches:
- Preventing the creation of these entries in the first place
- Removing these entries while not removing the formatting. These entries
don't have the same format so selecting by format and then change it doesn't
work.

Any additional ideas are very welcome

M.

"Stefan Blom" wrote:

[Quoted Text]
> You can paste as unformatted text in order to to avoid bringing formatting
> into the document. Note, however, that in this case it probably won't help,
> because the Document Map itself may assign outline levels to text. For more,
> see http://word.mvps.org/faqs/general/DocumentMap.htm.
>
> --
> Stefan Blom
> Microsoft Word MVP
>
>
>
> "Menl" <Menl[ at ]discussions.microsoft.com> wrote in message
> news:77A47AE0-042B-48FA-BD42-F02E596E1EC7[ at ]microsoft.com...
> > After migrating to Word 2007 we have the problem that when we select some
> > auto-generated text from a different program and paste it in another word
> > document it generates a lot of entries in the document map. I tried all I
> > could think of. I'll list the things I learned so you can maybe get a
> > better
> > idea of whats going on.
> > - There are a lot of unwanted entries
> > - These entries are not coupled to a single style.
> > - These entries are not coupled or derived from a Heading style
> > - These entries are not influenced by the show level in the outline view
> > - In Office 2003 it works great
> > - When inserting the TOC and clicking options and deselecting the second
> > checkbox (just below the styles, sorry different language version here, so
> > I
> > don't have the exact English caption) these entries don't show up in the
> > TOC
> > but are still there in the outline.
> >
> > It looks like Word does some auto formatting while pasting. How can you
> > prevent this. Any ideas are welcome.
> >
> >
>
>
>
>
Re: Copy text results in unwanted entries in Document map and TOC
"Stefan Blom" <no.spam[ at ]please.xyz> 12/5/2008 3:27:09 PM
You can try the macro in the referenced article to clear the outline levels
from the pasted text paragraphs.

--
Stefan Blom
Microsoft Word MVP



"Menl" <Menl[ at ]discussions.microsoft.com> wrote in message
news:E949F979-80F1-43AA-8C8D-23BAFA4DD5DA[ at ]microsoft.com...
[Quoted Text]
> Unformatted text won't be OK as I need the formatting. It should just
> avoid
> getting it into the document map.
>
> I dug a bit deeper and found that the document map entries are entered
> when
> exporting this text from another program. In Word 2003 these entries are
> not
> created only in Word 2007.
>
> I can get the entries to dissapear by reapplying the standard format, but
> as
> most entries use a different style, this is quite a lot of work.
>
> So there are two approaches:
> - Preventing the creation of these entries in the first place
> - Removing these entries while not removing the formatting. These entries
> don't have the same format so selecting by format and then change it
> doesn't
> work.
>
> Any additional ideas are very welcome
>
> M.
>
> "Stefan Blom" wrote:
>
>> You can paste as unformatted text in order to to avoid bringing
>> formatting
>> into the document. Note, however, that in this case it probably won't
>> help,
>> because the Document Map itself may assign outline levels to text. For
>> more,
>> see http://word.mvps.org/faqs/general/DocumentMap.htm.
>>
>> --
>> Stefan Blom
>> Microsoft Word MVP
>>
>>
>>
>> "Menl" <Menl[ at ]discussions.microsoft.com> wrote in message
>> news:77A47AE0-042B-48FA-BD42-F02E596E1EC7[ at ]microsoft.com...
>> > After migrating to Word 2007 we have the problem that when we select
>> > some
>> > auto-generated text from a different program and paste it in another
>> > word
>> > document it generates a lot of entries in the document map. I tried all
>> > I
>> > could think of. I'll list the things I learned so you can maybe get a
>> > better
>> > idea of whats going on.
>> > - There are a lot of unwanted entries
>> > - These entries are not coupled to a single style.
>> > - These entries are not coupled or derived from a Heading style
>> > - These entries are not influenced by the show level in the outline
>> > view
>> > - In Office 2003 it works great
>> > - When inserting the TOC and clicking options and deselecting the
>> > second
>> > checkbox (just below the styles, sorry different language version here,
>> > so
>> > I
>> > don't have the exact English caption) these entries don't show up in
>> > the
>> > TOC
>> > but are still there in the outline.
>> >
>> > It looks like Word does some auto formatting while pasting. How can you
>> > prevent this. Any ideas are welcome.
>> >
>> >
>>
>>
>>
>>


Re: Copy text results in unwanted entries in Document map and TOC
Menl 12/6/2008 2:20:01 PM
It is solved now. It had to do with direct formatting. Apparently this
created all the entries in the document map. By selecting all (CTRL-A) and
the pressing CTRL-Q all this formatting is removed and the list is emtied
while retaining all the layout formatting (bold, font, size etc)

Found it in the link higher up in this thread.

So thanks!!


"Stefan Blom" wrote:

[Quoted Text]
> You can try the macro in the referenced article to clear the outline levels
> from the pasted text paragraphs.
>
> --
> Stefan Blom
> Microsoft Word MVP
>
>
>
> "Menl" <Menl[ at ]discussions.microsoft.com> wrote in message
> news:E949F979-80F1-43AA-8C8D-23BAFA4DD5DA[ at ]microsoft.com...
> > Unformatted text won't be OK as I need the formatting. It should just
> > avoid
> > getting it into the document map.
> >
> > I dug a bit deeper and found that the document map entries are entered
> > when
> > exporting this text from another program. In Word 2003 these entries are
> > not
> > created only in Word 2007.
> >
> > I can get the entries to dissapear by reapplying the standard format, but
> > as
> > most entries use a different style, this is quite a lot of work.
> >
> > So there are two approaches:
> > - Preventing the creation of these entries in the first place
> > - Removing these entries while not removing the formatting. These entries
> > don't have the same format so selecting by format and then change it
> > doesn't
> > work.
> >
> > Any additional ideas are very welcome
> >
> > M.
> >
> > "Stefan Blom" wrote:
> >
> >> You can paste as unformatted text in order to to avoid bringing
> >> formatting
> >> into the document. Note, however, that in this case it probably won't
> >> help,
> >> because the Document Map itself may assign outline levels to text. For
> >> more,
> >> see http://word.mvps.org/faqs/general/DocumentMap.htm.
> >>
> >> --
> >> Stefan Blom
> >> Microsoft Word MVP
> >>
> >>
> >>
> >> "Menl" <Menl[ at ]discussions.microsoft.com> wrote in message
> >> news:77A47AE0-042B-48FA-BD42-F02E596E1EC7[ at ]microsoft.com...
> >> > After migrating to Word 2007 we have the problem that when we select
> >> > some
> >> > auto-generated text from a different program and paste it in another
> >> > word
> >> > document it generates a lot of entries in the document map. I tried all
> >> > I
> >> > could think of. I'll list the things I learned so you can maybe get a
> >> > better
> >> > idea of whats going on.
> >> > - There are a lot of unwanted entries
> >> > - These entries are not coupled to a single style.
> >> > - These entries are not coupled or derived from a Heading style
> >> > - These entries are not influenced by the show level in the outline
> >> > view
> >> > - In Office 2003 it works great
> >> > - When inserting the TOC and clicking options and deselecting the
> >> > second
> >> > checkbox (just below the styles, sorry different language version here,
> >> > so
> >> > I
> >> > don't have the exact English caption) these entries don't show up in
> >> > the
> >> > TOC
> >> > but are still there in the outline.
> >> >
> >> > It looks like Word does some auto formatting while pasting. How can you
> >> > prevent this. Any ideas are welcome.
> >> >
> >> >
> >>
> >>
> >>
> >>
>
>
>
Re: Copy text results in unwanted entries in Document map and TOC
"Stefan Blom" <no.spam[ at ]please.xyz> 12/8/2008 9:26:40 AM
As you have noticed, this is all explained in the article I linked to in my
first post.

--
Stefan Blom
Microsoft Word MVP



"Menl" <Menl[ at ]discussions.microsoft.com> wrote in message
news:9F3366A6-0190-4884-941A-7EDDE3587AE1[ at ]microsoft.com...
[Quoted Text]
> It is solved now. It had to do with direct formatting. Apparently this
> created all the entries in the document map. By selecting all (CTRL-A) and
> the pressing CTRL-Q all this formatting is removed and the list is emtied
> while retaining all the layout formatting (bold, font, size etc)
>
> Found it in the link higher up in this thread.
>
> So thanks!!
>
>
> "Stefan Blom" wrote:
>
>> You can try the macro in the referenced article to clear the outline
>> levels
>> from the pasted text paragraphs.
>>
>> --
>> Stefan Blom
>> Microsoft Word MVP
>>
>>
>>
>> "Menl" <Menl[ at ]discussions.microsoft.com> wrote in message
>> news:E949F979-80F1-43AA-8C8D-23BAFA4DD5DA[ at ]microsoft.com...
>> > Unformatted text won't be OK as I need the formatting. It should just
>> > avoid
>> > getting it into the document map.
>> >
>> > I dug a bit deeper and found that the document map entries are entered
>> > when
>> > exporting this text from another program. In Word 2003 these entries
>> > are
>> > not
>> > created only in Word 2007.
>> >
>> > I can get the entries to dissapear by reapplying the standard format,
>> > but
>> > as
>> > most entries use a different style, this is quite a lot of work.
>> >
>> > So there are two approaches:
>> > - Preventing the creation of these entries in the first place
>> > - Removing these entries while not removing the formatting. These
>> > entries
>> > don't have the same format so selecting by format and then change it
>> > doesn't
>> > work.
>> >
>> > Any additional ideas are very welcome
>> >
>> > M.
>> >
>> > "Stefan Blom" wrote:
>> >
>> >> You can paste as unformatted text in order to to avoid bringing
>> >> formatting
>> >> into the document. Note, however, that in this case it probably won't
>> >> help,
>> >> because the Document Map itself may assign outline levels to text. For
>> >> more,
>> >> see http://word.mvps.org/faqs/general/DocumentMap.htm.
>> >>
>> >> --
>> >> Stefan Blom
>> >> Microsoft Word MVP
>> >>
>> >>
>> >>
>> >> "Menl" <Menl[ at ]discussions.microsoft.com> wrote in message
>> >> news:77A47AE0-042B-48FA-BD42-F02E596E1EC7[ at ]microsoft.com...
>> >> > After migrating to Word 2007 we have the problem that when we select
>> >> > some
>> >> > auto-generated text from a different program and paste it in another
>> >> > word
>> >> > document it generates a lot of entries in the document map. I tried
>> >> > all
>> >> > I
>> >> > could think of. I'll list the things I learned so you can maybe get
>> >> > a
>> >> > better
>> >> > idea of whats going on.
>> >> > - There are a lot of unwanted entries
>> >> > - These entries are not coupled to a single style.
>> >> > - These entries are not coupled or derived from a Heading style
>> >> > - These entries are not influenced by the show level in the outline
>> >> > view
>> >> > - In Office 2003 it works great
>> >> > - When inserting the TOC and clicking options and deselecting the
>> >> > second
>> >> > checkbox (just below the styles, sorry different language version
>> >> > here,
>> >> > so
>> >> > I
>> >> > don't have the exact English caption) these entries don't show up in
>> >> > the
>> >> > TOC
>> >> > but are still there in the outline.
>> >> >
>> >> > It looks like Word does some auto formatting while pasting. How can
>> >> > you
>> >> > prevent this. Any ideas are welcome.
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >>
>>
>>
>>



Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net