Copy and paste

F

Flemming Dahl

Hi all

In Word 2000 when I made a copy and paste using vba from one document to
another the Style was copied with the text......

The style is not copied with the text in XP...... Can somebody tell me why ?
and how to get around it ?

Thanks,
Flemming
 
P

pre

Options.SmartCutPaste = True
Set myDoc = Documents.Add
With myDoc
.Content.InsertAfter("The brown quick fox")
.Words(2).Cut
.Characters(10).Paste
 
F

Flemming Dahl

Hey pre

I can't see this code doing anything - are you answering on another question
?

When copy and paste between documents the style was copied to the "paste"
document if the style didn't exists there. This is what my quistion is
about.

Cheers,
Flemming
 
Top