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 / July 2007

Tip: Looking for answers? Try searching our database.

SAVEAS vba

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
FIRSTROUNDKO - 24 Jul 2007 15:58 GMT
Hi!

I have word documents that have the first line

adogisacat
apigisacow

How do I select the 2 to 4 characters and save in c:\animals\

under dog.doc and pig.doc

Thanks in advance
Doug Robbins - Word MVP - 26 Jul 2007 12:06 GMT
Dim fname As Range
With ActiveDocument
   Set fname = .Range
   fname.start = fname.start + 1
   fname.End = fname.start + 3
   .SaveAs "c:\animals\" & fname.Text
End With

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

> Hi!
>
[quoted text clipped - 8 lines]
>
> Thanks in advance
FIRSTROUNDKO - 26 Jul 2007 14:04 GMT
Thanks Doug, much appreciated

>Dim fname As Range
>With ActiveDocument
[quoted text clipped - 9 lines]
>>
>> Thanks in advance
 
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.