Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2005

Tip: Looking for answers? Try searching our database.

Cut and paste to new document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ben - 28 Jan 2005 06:23 GMT
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
Helmut Weber - 28 Jan 2005 09:40 GMT
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
Ben - 28 Jan 2005 10:43 GMT
Hi,
for "S".

thanks

regards,
Ben

> Hi,
>
[quoted text clipped - 19 lines]
> "red.sys" & chr(64) & "t-online.de"
> Word 2002, Windows 2000

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.