|
-
Jan 13th, 2004, 04:48 PM
#1
Thread Starter
New Member
VB and Word and Save as[Resolved]
I'm a newbie, and I've searched and I've searched, and I have not found an answer to this question:
I have a vb program that is writing to a Word Document. What I would like to do is automate the naming of the document on the SaveAs function so that it takes the name of the document from a textbox.
Is there any way to insert txtName.text as the filename where the question marks are?
Code:
.ActiveDocument.SaveAs App.Path & "C:\My Documents\ ????
Thanks for the help!
Last edited by ProsthtkReality; Jan 14th, 2004 at 11:23 AM.
-
Jan 13th, 2004, 06:51 PM
#2
-= B u g S l a y e r =-
think you want something like this :
VB Code:
.ActiveDocument.SaveAs "C:\My Documents\" & txtName.text
ps I removed the app.path no use having that if you add C:\My documents after it...
-
Jan 14th, 2004, 11:24 AM
#3
Thread Starter
New Member
Worked like a charm! Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|