Re: Automatically change title of routed file?

From: Doug Robbins (dkr_at_NOmvpsSPAM.org)
Date: 08/21/04


Date: Fri, 20 Aug 2004 20:56:09 -0400

If the template contains formfields into which they are entering the name of
the item, have a macro that runs on exit from that field that saves the
document with a filename constructed from the string "Material Code
Request - " & the .Result of the formfield.

-- 
Please respond to the Newsgroup for the benefit of others who may be 
interested.   Questions sent directly to me will only be answered on a paid 
consulting basis.
Hope this helps,
Doug Robbins - Word MVP
"JKC" <JKC@discussions.microsoft.com> wrote in message 
news:33425F60-2F8B-4EF3-8239-D36E76E4CAA4@microsoft.com...
> Hi,
>
> I'd like to set up a template which is a request form which needs input 
> from
> a number of people.  I can use the email routing slip & the file would be 
> a
> word template (.dot).
>
> What I'd like to do is have the file change its title when the first 
> pieces
> of information are added.
>
> For example, it's a form which requests a new material code for something 
> we
> purchase - solvent A. The requestor would open the material code request
> template and complete the first section which would include the name of 
> the
> material (solvent A). They would then set up a routing slip which routes 
> the
> form through technical/purchasing/logistics etc.
> When they routed the document the filename would change to something like:
> material code request - Solvent A. Without them having to change this.
>
> Can this be done? I can find out how to reference the name of a file 
> within
> the document but not to change its name - is there any way of 'tricking' 
> word
> to do this using the fact that it choses the first sentence as the default
> name when suggesting a title?
>
> The reason I want to do this is that there are large numbers of these
> requests received by some people & if they can easily file/index them it 
> will
> be much easier to keep track.
>
> Thanks in advance - these communities are so helpful!
>
> I'm using Word 2002/XP professional
>
> J 


Relevant Pages

  • Automatically change title of routed file?
    ... I'd like to set up a template which is a request form which needs input from ... it's a form which requests a new material code for something we ... They would then set up a routing slip which routes the ...
    (microsoft.public.word.docmanagement)
  • Re: IIS cert denied
    ... Start the Certificate Services service. ... Grant Read and Enroll access for the template to the appropriate user ... > I am using Server 2003 and was trying to create a new cert ... When I finish and the request is just about to be ...
    (microsoft.public.inetserver.iis.security)
  • Re: Does a method exist to Embed a long string into VB6 as a constant?
    ... I want to embed the template into the compliled code. ... The request is just ... The string can be built from simple assignments and from constants. ... The difference between the two is the handling of white space (spaces and ...
    (microsoft.public.vb.general.discussion)
  • Re: Certificates for l2tp VPN
    ... "IPSec offline request" template, the certificate is in the Local ... canīt install the correct certificate to make it work. ...
    (microsoft.public.win2000.security)
  • Re: Struts RequestAware and FreeMarker
    ... private Map Session = null; ... return Session; ... return Request; ... In the template file I use the following to access the Session Map: ...
    (comp.lang.java.programmer)