Filename missing characters at "Save As" time

R

Randy

My template file and title is named "ABCv1.0"(.dot) but
when I Open a New doc using the template and click SAVE
AS..., the filename appears as "ABCv1". How can I force
the SAVE AS... filename to appear as "ABCv1.0"?
 
G

Guest

I'm not sure you can if you want to use a dot in your version number
The '.' is used by Windows/DOS to suffix the extension onto a filename, so Word probably strips this automatically
Perhaps you might consider using an underscore or dash in your version number instead
E.g. ABCv1_0 or ABCv1-
These won't interfere, and achieve almost the same outcome

cheers

----- Randy wrote: ----

My template file and title is named "ABCv1.0"(.dot) but
when I Open a New doc using the template and click SAVE
AS..., the filename appears as "ABCv1". How can I force
the SAVE AS... filename to appear as "ABCv1.0"?
 
R

Randy

Thanks for the reply. I've tried the underscore, but see
same results as the '.' Any way to "send" ABCv1.0 as the
filename to the "SAVE AS..." filename via a macro? Other
ideas?
-----Original Message-----
I'm not sure you can if you want to use a dot in your version number.
The '.' is used by Windows/DOS to suffix the extension
onto a filename, so Word probably strips this
automatically.
Perhaps you might consider using an underscore or dash
in your version number instead.
 
G

Guest

You can't save word docs with a "." in the file name. Use an underscore or other spacer as suggested.
 
R

Randy

But, the Word doc saves fine when I enter the ".0" at the
end of "ABCv1" So, I think it's not able to propagate
correctly from the template title as "ABCv1.0" I'm
trying to figure out how to get "ABCv1.0" preset in the
SAVE AS... filename???
-----Original Message-----
You can't save word docs with a "." in the file name.
Use an underscore or other spacer as suggested.
 
G

Graham Mayor

Alex said:
You can't save word docs with a "." in the file name. Use an
underscore or other spacer as suggested.

Of course you can! It's been a long time since DOS and this limitation.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP

Web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 
D

Dayo Mitchell

Don't think you can get Word to pick that up--Word just uses the first
phrase in the doc, and "." is seen as punctuation, thus the start of a new
phrase or sentence. It cuts off at commas and dashes (and underscores) too,
as well as paragraph marks.

Might be a macro solution to pick up the entire first line for the preset
Save As title, but I'm not the one to help with that. But maybe my
restatement of the problem will catch someone else's attention.

DM
 
J

Jay Freedman

Hi Randy

Dayo is correct. Here's some code to put into your template, to intercept
the built-in Save and SaveAs commands:

Public Sub FileSaveAs()
With Dialogs(wdDialogFileSaveAs)
.Name = ActiveDocument.BuiltInDocumentProperties( _
wdPropertyTitle).Value
.Show
End With
End Sub

Public Sub FileSave()
If ActiveDocument.Path = "" Then
Call FileSaveAs
Else
ActiveDocument.Save
End If
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top