how to get modified default filename when saving, based on the first line

hello,

i would like to create a system for a rather large amount of univ books, that i would name based on the section name and number them (eg: 0001_physical-clock.doc). this section name is usually the first line after the header.

how can i create a form ( at the beginning of the word document ), so the contents of it would be added to the filename when saving ( saving me from typing it, much less finding it )?

thank you

[437 byte] By [csulok] at [2007-12-23]
# 1
USE VSTO and attach to the documents before save event and then go and read the line form the document you need and concantenate it to the filename
DMan1 at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 2

Sounds like a VBA / VSTO issue when trying to create a form (at the beginning of a word document).

As I assume you are wanting your solution to be completely contained within word and not require an external VB.Net application.

If this is the case then there are VBA and VSTO forums.

If not and you are intending on using VB.Net then please provide more details.

spotty at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic Language...
# 3

hello again,

thank you for your replies, i now know what i'm looking for.

@spotty: yes, i am looking for a solution that would be entirely contained within word and hopefully, again entirely, automated.
since i'm totally new to this kind of scripting, could you please point me to the forums i'm in fact looking for? also what exactly should i ask for when bringing up this subject there?

@dman1: that solution sounds very promising, however aside from the few words i heard before, i know nothing about implementing them or putting them into work in my document files. can you please go into a bit more detail?

thank you very much again

csulok at 2007-8-30 > top of Msdn Tech,Visual Basic,Visual Basic Language...