Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Default Save format | Microsoft Word Help | |||
How to change default save from My Documents? | Microsoft Word Help | |||
Default font - possible bulletproof fix in Word 2003 | Microsoft Word Help | |||
How do I setup the default location to save word files? | New Users | |||
Require different default save folders for different templates - . | Microsoft Word Help |