Cut and paste to new document

B

Ben

Hi,
I have code that actually find the 1st 'S' of the document where it will
cut and paste to new document. Can i coded in vb that it will find the next
'S' and vut and paste instead.

With Selection.Find
.Execute FindText:="<[FS]????????>", MatchWildcards:=True,
MatchWholeWord:=True, Wrap:=wdFindContinue, Forward:=True
'MsgBox "!"
'Invoke the SaveAs box
With Dialogs(wdDialogFileSaveAs)
.Name = Trim$(Selection.Text)
.Show
End With

End With

regards,
ben
 
H

Helmut Weber

Hi,
I have code that actually find the 1st 'S' of the
document where it will
cut and paste to new document.

Could you be a bit more precise?

You are searching for "F" or "S" by the way,
not for "S"
With Dialogs(wdDialogFileSaveAs)
.Name = Trim$(Selection.Text)
.Show
End With

has nothing to do with copying and pasting
to a new document.

Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word 2002, Windows 2000
 
B

Ben

Hi,
for "S".

thanks

regards,
Ben


Helmut Weber said:
Hi,


Could you be a bit more precise?

You are searching for "F" or "S" by the way,
not for "S"


has nothing to do with copying and pasting
to a new document.

Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word 2002, Windows 2000
 

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

Top