#1   Report Post  
Charles A. Lackman
 
Posts: n/a
Default Default Save Name

With WrdApp
..Documents.Open("C:\My Documents\MyDoc.doc", missing, missing, missing,
missing, missing, missing, missing, missing, missing, missing, missing)
..Selection.Paste()
..Visible = True
..Activate()
..NormalTemplate.Saved = True
End With

When the user goes to save the document it defaults to MyDoc.doc, is
there a way to change the name (programmatically) that will default to a
different name instead of MyDoc.doc.



  #2   Report Post  
Jay Freedman
 
Posts: n/a
Default

Charles A. Lackman wrote:
With WrdApp
.Documents.Open("C:\My Documents\MyDoc.doc", missing, missing,
missing, missing, missing, missing, missing, missing, missing,
missing, missing)
.Selection.Paste()
.Visible = True
.Activate()
.NormalTemplate.Saved = True
End With

When the user goes to save the document it defaults to MyDoc.doc, is
there a way to change the name (programmatically) that will default
to a different name instead of MyDoc.doc.


See http://word.mvps.org/FAQs/MacrosVBA/...SaveAsPath.htm, at the bottom
of the page where it says "If you want to have the dialog preloaded with a
different file name".

Since you appear to be automating Word from VB.Net, you may need to know
that the constant wdDialogFileSaveAs has the value 84 or &H54.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Default Save format Baffleduk Microsoft Word Help 1 March 18th 05 03:52 PM
How to change default save from My Documents? Dale Microsoft Word Help 2 January 21st 05 05:01 PM
Default font - possible bulletproof fix in Word 2003 [email protected] Microsoft Word Help 0 January 14th 05 09:14 PM
How do I setup the default location to save word files? Raymond Ellis New Users 1 December 27th 04 03:42 AM
Require different default save folders for different templates - . alanw Microsoft Word Help 1 December 13th 04 12:16 PM


All times are GMT +1. The time now is 02:40 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"