Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel Automation

I am looking to automate a couple of tasks for an Excel workbook
stored on a mapped network drive that will be accessed and shared by
multiple users. A list of these tasks is as follows:

1) Automatically execute a macro in the workbook every night at 12:15
AM. My initial thoughts are to write a VBScript file that will create
an instance of Excel, open the workbook and execute the macro. The
VBScript will be run using Windows Scheduler on the workbook's host
computer.

2) Allow users to open the Excel workbook from within a 3rd party
application, make changes if necessary and save the file. (Note that
the 3rd party application is built on top of VBA, which I already have
the code for opening the file.) My problem is how to give multiple
users the ability to open the file, edit and save changes. My first
inclination is to copy the file to the user's local hard drive and
then open it. The problem then becomes if the user makes a change and
saves it the file will still be on their local hard drive and not on
the network drive for other users to access. The only way I can think
of to do this is to a special macro for saving the file back to the
network drive.

Any help is greatly appreciated.

Thanks.

-Jim
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Excel Automation

Multiple users accessing a spreadsheet is problematic at the best of times.
While you can create a shared workbook the limitation that that imposes on
the workbook are many. Before you head down that road do some research. Most
of the experienced users that I know do not create shared workbooks. They
tend to be more trouble than they are worth. I would be inclined to use some
kind of a system that handles concurrent users. Perhaps store all of your
data in a back end Access database which will handle concurrent users. If you
want to use Excel as your front end that can be done.

What I am saying is that if you intend to use XL for what you have described
I wish you the best of luck because you are going to need it...

As for your first question you can create some on open code that checks the
time of day. If it is between 12PM and 1AM then have it do some processing.
Now all you need to do is to place a shor tcut to the file in your Windows
scheduler and you are all set to go.
--
HTH...

Jim Thomlinson


" wrote:

I am looking to automate a couple of tasks for an Excel workbook
stored on a mapped network drive that will be accessed and shared by
multiple users. A list of these tasks is as follows:

1) Automatically execute a macro in the workbook every night at 12:15
AM. My initial thoughts are to write a VBScript file that will create
an instance of Excel, open the workbook and execute the macro. The
VBScript will be run using Windows Scheduler on the workbook's host
computer.

2) Allow users to open the Excel workbook from within a 3rd party
application, make changes if necessary and save the file. (Note that
the 3rd party application is built on top of VBA, which I already have
the code for opening the file.) My problem is how to give multiple
users the ability to open the file, edit and save changes. My first
inclination is to copy the file to the user's local hard drive and
then open it. The problem then becomes if the user makes a change and
saves it the file will still be on their local hard drive and not on
the network drive for other users to access. The only way I can think
of to do this is to a special macro for saving the file back to the
network drive.

Any help is greatly appreciated.

Thanks.

-Jim

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Automation Arshavir Grigorian Excel Programming 10 March 1st 08 09:35 PM
Automation in excel SnOOpss Excel Programming 0 September 19th 07 04:30 PM
Supressing the ctrl-c and other keys during word automation in automation apondu Excel Programming 0 July 19th 07 10:10 PM
Excel 2.1 - .NET Automation [email protected] Excel Programming 0 March 13th 06 06:50 PM
Excel automation in a VB app [email protected] Excel Programming 1 January 12th 04 07:59 PM


All times are GMT +1. The time now is 10:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"