• Grabbing line one for a save as

    Author
    Topic
    #356902

    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 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

    Viewing 1 reply thread
    Author
    Replies
    • #529102

      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

      • #529753

        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? shrug
        Brian

    • #529889

      Brilliant bravo
      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

    Viewing 1 reply thread
    Reply To: Grabbing line one for a save as

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: