Reply
 
Thread Tools Display Modes
  #1   Report Post  
Bo Rasmussen
 
Posts: n/a
Default Setting the filename for 1. time save

Hi,

When we create a new document from a template, some fields are created. From
these fields the filename for the document can be set. When Save is selected
the first time it seems that the Title is used as a starting point. However
there's not much idea in having the Title equal to the filename. Is there a
way to tell word what it should use for filename ?

Regards
Bo Rasmussen


  #2   Report Post  
Greg
 
Posts: n/a
Default

Bo,

Something like:

Sub FileSaveAs()
Dim oName As String
oName = ActiveDocument.Fields(1).Result
With Dialogs(wdDialogFileSaveAs)
.Name = oName
.Show
End With
End Sub

Will use the value in the first field in the document.

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
Filename changes during save as from template Malcolm Fowler Microsoft Word Help 6 June 29th 05 09:21 AM
Filename Suffix Auto-Append on Save As... Shmaff Microsoft Word Help 3 May 14th 05 08:01 AM
Save mail merge letters with a filename in a specific location Hel Jeanne Moos Mailmerge 2 May 13th 05 03:04 PM
I am prompted to Save As everytime I Print. Is there a setting t. Lisa Microsoft Word Help 1 April 1st 05 11:06 PM
VBA for Filename Creation without document Save Barb Reinhardt Microsoft Word Help 2 December 15th 04 08:09 PM


All times are GMT +1. The time now is 07:01 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"