A
arno
Hi,
I've been asked to develop the following: devise a way to trap Save
events of both Word documents and Excel workbooks, and check if they
have a set of custom document properties filled out.
There are several ways I can go about this:
1. incorporate a piece of VBA code into every new template that checks
for this (very easy)
2. write 2 'global templates' for both Word and Excel that does the
same. (easy)
3. As DocumentProperties are an Office-wide feature, write an Add-in
that does that for me, from 1 place and 1 file. (not as easy as I had
hoped)
I am okay with VBA and VB, but writing Office Add-Ins is new to me. So
far, I got as far as trapping the NewWorkbook and WorkbookOpen event
in Excel. How do I trap the BeforeSave event? Excel has it, Word
doesnt it seems.
So, if you'll bear with me please, a few questions:
-how do I trap the Save 'document' (workbook and document) events for
Excel and Word?
-Is an Add-In the way to go?
-I am on VB6/Office2000, how hard will it be to be to migrate my
solution -if ever I get there- to Office 2003?
tia
arno
I've been asked to develop the following: devise a way to trap Save
events of both Word documents and Excel workbooks, and check if they
have a set of custom document properties filled out.
There are several ways I can go about this:
1. incorporate a piece of VBA code into every new template that checks
for this (very easy)
2. write 2 'global templates' for both Word and Excel that does the
same. (easy)
3. As DocumentProperties are an Office-wide feature, write an Add-in
that does that for me, from 1 place and 1 file. (not as easy as I had
hoped)
I am okay with VBA and VB, but writing Office Add-Ins is new to me. So
far, I got as far as trapping the NewWorkbook and WorkbookOpen event
in Excel. How do I trap the BeforeSave event? Excel has it, Word
doesnt it seems.
So, if you'll bear with me please, a few questions:
-how do I trap the Save 'document' (workbook and document) events for
Excel and Word?
-Is an Add-In the way to go?
-I am on VB6/Office2000, how hard will it be to be to migrate my
solution -if ever I get there- to Office 2003?
tia
arno