Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Mon, 30 Jan 2006 17:57:18 +0530,    group: microsoft.public.word.vba.customization        back       


Save Active Document with automatic file name   
Hi

I want to create code/macro that saves a document to a specific file
directory (eg c:\mydocuments\matters\"") and then gives it an automatic
name using a numbering convention (eg format(date, "ddmmyy") &
"username" & automatic number).  I want it to look for the last number
saved and then save the new doc with the next number available.  (eg
file is called 300106da123 [da being username] and then next user saves
and gets 300106bc124).


Thank you for your help.
B


-- 
btcPosted from - http://www.officehelp.in
date: Mon, 30 Jan 2006 17:57:18 +0530   author:   btc

Re: Save Active Document with automatic file name   
btc wrote:
> Hi
>
> I want to create code/macro that saves a document to a specific file
> directory (eg c:\mydocuments\matters\"") and then gives it an
> automatic name using a numbering convention (eg format(date,
> "ddmmyy") & "username" & automatic number).  I want it to look for
> the last number saved and then save the new doc with the next number
> available.  (eg file is called 300106da123 [da being username] and
> then next user saves and gets 300106bc124).
>
>
> Thank you for your help.
> B

See http://word.mvps.org/FAQs/MacrosVBA/NumberDocs.htm for the part about
the sequential number.

It looks like you have the expression needed for the rest of the file name,
assuming you have some way to determine the current user name (and don't use
quotes around "username" unless you want that literal word in the file
name).

-- 
Regards,
Jay Freedman
Microsoft Word MVP          FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
date: Mon, 30 Jan 2006 11:02:02 -0500   author:   Jay Freedman

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us