A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Is there a way to force out other editors when Excel 2003 is inautomation mode?



 
 
Thread Tools Display Modes
  #1  
Old May 5th, 2010, 10:43 PM posted to microsoft.public.excel.misc
LunaMoon
external usenet poster
 
Posts: 54
Default Is there a way to force out other editors when Excel 2003 is inautomation mode?

Hi all,

I am using Windows scheduler to automate Excel tasks, every morning
4am...

Basically, my current implementation is:

1. Auto-open Excel sheet;
2. Run some macro, download some data;
3. Auto-save and close.

However, the automation fails when some other people including myself
are editing the Excel sheets ...

Is there a way to force out other editors when opening the sheet in
automation mode?

Thanks a lot!
  #2  
Old May 6th, 2010, 01:25 AM posted to microsoft.public.excel.misc
Dave Peterson
external usenet poster
 
Posts: 19,791
Default Is there a way to force out other editors when Excel 2003 is inautomation mode?

I don't think so.

Maybe you can check to see if your procedure opened the file successfully in
read/write mode and continue -- or use application.ontime to try in a few
minutes.

Chip Pearson's site explains it:
http://www.cpearson.com/excel/OnTime.aspx

LunaMoon wrote:

Hi all,

I am using Windows scheduler to automate Excel tasks, every morning
4am...

Basically, my current implementation is:

1. Auto-open Excel sheet;
2. Run some macro, download some data;
3. Auto-save and close.

However, the automation fails when some other people including myself
are editing the Excel sheets ...

Is there a way to force out other editors when opening the sheet in
automation mode?

Thanks a lot!


--

Dave Peterson
  #3  
Old May 7th, 2010, 01:50 AM posted to microsoft.public.excel.misc
LunaMoon
external usenet poster
 
Posts: 54
Default Is there a way to force out other editors when Excel 2003 is inautomation mode?

On May 5, 8:25*pm, Dave Peterson wrote:
I don't think so.

Maybe you can check to see if your procedure opened the file successfully in
read/write mode and continue -- or use application.ontime to try in a few
minutes.

Chip Pearson's site explains it:http://www.cpearson.com/excel/OnTime.aspx



LunaMoon wrote:

Hi all,


I am using Windows scheduler to automate Excel tasks, every morning
4am...


Basically, my current implementation is:


1. Auto-open Excel sheet;
2. Run some macro, download some data;
3. Auto-save and close.


However, the automation fails when some other people including myself
are editing the Excel sheets ...


Is there a way to force out other editors when opening the sheet in
automation mode?


Thanks a lot!


--

Dave Peterson


This doesn't matter.

No matter what I need to force out the other editors...

They are my colleagues and they sometimes forget about closing out of
the files before they leave the office...

If I don't force them out, there will be always a "read/write
notification" window popping up,

asking "yes/no",

then the whole automation procedure stuck there, defeating the purpose
of automation.

Any more thoughts?

Thanks
  #4  
Old May 7th, 2010, 02:00 PM posted to microsoft.public.excel.misc
Dave Peterson
external usenet poster
 
Posts: 19,791
Default Is there a way to force out other editors when Excel 2003 is inautomation mode?

So you would want to force the user to close the file -- even though you don't
know if the current changes should be saved or discarded?

That sounds like a disaster for you, your co-worker, and your boss -- who's
going to be upset that something got saved that shouldn't have -- or 8 hours of
work was discarded and shouldn't have been.

I think that this is a training issue.

But if you look at Chip's site to see how to close a workbook after a given time
of inactivity.

http://www.cpearson.com/excel/TimedClose.htm

(I can't say how much I think that this is a bad idea!)

LunaMoon wrote:

On May 5, 8:25 pm, Dave Peterson wrote:
I don't think so.

Maybe you can check to see if your procedure opened the file successfully in
read/write mode and continue -- or use application.ontime to try in a few
minutes.

Chip Pearson's site explains it:http://www.cpearson.com/excel/OnTime.aspx



LunaMoon wrote:

Hi all,


I am using Windows scheduler to automate Excel tasks, every morning
4am...


Basically, my current implementation is:


1. Auto-open Excel sheet;
2. Run some macro, download some data;
3. Auto-save and close.


However, the automation fails when some other people including myself
are editing the Excel sheets ...


Is there a way to force out other editors when opening the sheet in
automation mode?


Thanks a lot!


--

Dave Peterson


This doesn't matter.

No matter what I need to force out the other editors...

They are my colleagues and they sometimes forget about closing out of
the files before they leave the office...

If I don't force them out, there will be always a "read/write
notification" window popping up,

asking "yes/no",

then the whole automation procedure stuck there, defeating the purpose
of automation.

Any more thoughts?

Thanks


--

Dave Peterson
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:42 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.