Hiding home directory properties in a document

G

Gordon Filby

Hello,



I run a small Internet business correcting and reviewing scientific
manuscripts for non-native English speakers. All the work comes exclusively
by e-mail attachment. To streamline workflow, I would like to be able to
send these attachments - they're almost exclusively MS Word files, so that
each document "knows" its own, home address, i.e. file path and document
name. The idea is that when a file is returned by an author for further
correction or checking. All I need do is click a button to runs ome VBA code
to change the filename and save it to its home address. I prefer to do this
using VBA code but I don't want to use a macro inside the file as I suspect
that my clients will be unhappy about it. Also the client should not see
this jiggery-pokery - some of them are very sensitive to unrequested
alterations to their documents. I had thought of inserting a document
variable containing this path, but I'm not quite sure how to do it. Has
anyone an idea? Many thanks in advance.



General information: all files leaving my office are renamed to
AnyName_EDIT.doc and authors are requested not to change this. Files
returned to me are renamed AnyName_RECHKn (n=1 to number of rechecks) and
returned to their authors



Gordon Filby
 
H

Helmut Weber

Hi Gordon,
I had thought of inserting a document
variable containing this path, but I'm not quite sure how to do it.
Has anyone an idea? Many thanks in advance.

as easy as that:

ActiveDocument.Variables("MyPath").Value = "c:\edit\test\"
' MsgBox ActiveDocument.Variables("MyPath").Value

Don't use
Activedocument.variables.add
as this would require a check,
whether the variable already exists,
or some error checking.

--

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Vista Small Business, Office XP
 
G

Gordon Filby

Gruss Gott, Helmut,

Greetings from Karlsruhe and thanks for the tip.

I'm afraid my description was a bit oversimplified.

From a taskbar in Outlook I generate the mail text below:

Dear Colleague,

Please find attached the first edit of your manuscript. Please DO NOT alter
the filename at any stage of the editing cycle. This is used for internal
tracking purposes.

Please work carefully through the markup accepting/rejecting insertions and
deletions, and responding to comments, as described in the attached file
TrackChangesDescrptn.doc.

Afterwards please return the revised ms to us for rechecking.

Best Regards

Gordon Filby

***************************************************************

then I "go and get" the document I want to add from its directory (paper
clip Outlook = add attachment). Then I use the send button in Outlook to
send the whole thing off. I need the full home path to be "inside" the
document so that when the client returns it, all I need do is change the
name (_EDIT to _RECHKn again using VBA) and send it "home". I reckon the doc
variable is the way to go, but I'm not sure (or more truthfully, haven't a
clue) how to do it. I suspect I need an event like "OnSend", or the like,
which dumps the directory data when the whole package is together and just
before "Send".



May be you have a clue.



Regards,



Gordon Filby
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top