Results 1 to 5 of 5
  1. #1
    Star Lounger
    Join Date
    Apr 2001
    Location
    Muscat, Oman
    Posts
    85
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Grabbing line one for a save as

    I have been toying with the idea of using the fact that Word normally uses the first line of a document in the save as box. I thought I had an easy solution to automatically generate a save name for the many files I produce daily. Unfortunately there a few problems with this including the fact Word truncates the text as soon as it hits a non alphabetic character (why?).

    I thought I would try and write a macro to shift my memo subject up to line 1 and then do a save as to grab this line. Unfortunately, it doesn't work. I am using a memo templae in a macro to generate each memo and the only thing that appears in the save as box is 'Tuesday' ---the day I happened to make the first ever template.

    I saw a recent post for a macro which would use the text in a <user field> for the name of the file together with path etc. I wasn't sure if it would do what I wanted but I noted it anyway.

    Does anyone know of another solution to this?
    TIA
    Brian

  2. #2
    2 Star Lounger
    Join Date
    Mar 2001
    Location
    Oregon, USA
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Grabbing line one for a save as

    Hi Brian

    (edited to change name)

    For a non-macro solution, how about entering a value in the Title field of the template's properties (File>Properties>Summary tab)? Word will then default to that name when saving new documents based on the template.

    HTH,

    Chris

  3. #3
    Star Lounger
    Join Date
    Apr 2001
    Location
    Muscat, Oman
    Posts
    85
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Grabbing line one for a save as

    Thanks for your reply. Your suggestion certainly works but I need the name to be the same as the subject line I enter and so it will change every time I use the template.

    I thought that if word normally grabs the first line there might be a routine which could be modified to grab another line (say line 10) on save as? <img src=/S/shrug.gif border=0 alt=shrug width=39 height=15>
    Brian

  4. #4
    BAM
    Guest

    Re: Grabbing line one for a save as

    Hi Brian,

    What about combining Fill-in fields with your memo template?

    This could serve two purposes, first when you create a new document based on the template you would be prompted with an input box for entering items such as Subject, To, etc... and that would make data entry faster.

    Second, if you nest a Fill-in field in an Info field you can populate the File Properties with the Fill-in field info at the same time. So if you populate the Title field, with the contents of the Fill-in field for the Subject, it will be suggested as the file name in Save As.

    It would look something like:
    { INFO Title { FILLIN "What is the Subject?" }}

    Notes:
    Use <Ctrl F9> to insert the curly braces instead of typing them.
    To use the keyboard to select OK when entering the Fill-ins press <Alt> then <Enter>
    ~~~~~~~~~~~~
    Cheers!

  5. #5
    Star Lounger
    Join Date
    Apr 2001
    Location
    Muscat, Oman
    Posts
    85
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Grabbing line one for a save as

    Brilliant <img src=/S/bravo.gif border=0 alt=bravo width=16 height=30>
    I tried your suggestion and after a bit of fiddling (I have not used field codes very often) I got the template working as it should. It works and does just what I want. You have opened a new vista for me! Thanks.
    Brian G

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •