D
Doug Lowe
Hi everyone,
I've written a VBA macro that runs in Word to help users create form letters
with names drawn from an Exchange contacts folder via the Outlook object
model. It populates a drop-down list with all of the names from the folder.
Because this takes about 30 seconds, and the list of contacts doesn't change
that often, I opted to read the names from a cached text file saved on a
network store. The dialog box has a button the user can click that creates a
new version of this cache file when necessary.
The problem is that I'd like to schedule this update to run on a nightly
basis. What would be the best way to do this, if possible without porting
the Word VBA code that accesses the Outlook objects to some other platform.
I think the easiest would be to it up to run nightly on a client computer
that has Word and Outlook installed. To do that I think I'd just have to
create a macro that calls the Sub that updates the cache file, then schedule
WinWord with the right switches to run the macro.
But I think the users would rather have this run on a server computer
instead of a client, which might get turned off at night. But it seems to me
that unless I install Word & Outlook on the server, I'll have to port the
code to some other platform. If so, what would be the best? They don't have
..NET on the servers (they're Win2K), but said they could put it there. But
is access to an Exchange contacts folder easy to do through .NET? Or what
about Java -- is there a library I could use?
I'd appreciate any advice. Thanks!
--Doug
I've written a VBA macro that runs in Word to help users create form letters
with names drawn from an Exchange contacts folder via the Outlook object
model. It populates a drop-down list with all of the names from the folder.
Because this takes about 30 seconds, and the list of contacts doesn't change
that often, I opted to read the names from a cached text file saved on a
network store. The dialog box has a button the user can click that creates a
new version of this cache file when necessary.
The problem is that I'd like to schedule this update to run on a nightly
basis. What would be the best way to do this, if possible without porting
the Word VBA code that accesses the Outlook objects to some other platform.
I think the easiest would be to it up to run nightly on a client computer
that has Word and Outlook installed. To do that I think I'd just have to
create a macro that calls the Sub that updates the cache file, then schedule
WinWord with the right switches to run the macro.
But I think the users would rather have this run on a server computer
instead of a client, which might get turned off at night. But it seems to me
that unless I install Word & Outlook on the server, I'll have to port the
code to some other platform. If so, what would be the best? They don't have
..NET on the servers (they're Win2K), but said they could put it there. But
is access to an Exchange contacts folder easy to do through .NET? Or what
about Java -- is there a library I could use?
I'd appreciate any advice. Thanks!
--Doug