Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Run macro in background

I have a scheduled macro that downloads data every 10 minutes. A problem
arises though when the user has another workbook active when the macro is
running. The macro tries to run in the active workbook.
I could make the macro activate the correct workbook before doing the
download, but that interrupts the user's work in another workbook. Is there a
way to keep the scheduled macro in the background, and in the correct
workbook, leaving the user undisturbed working in a different active workbook?

Andy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default Run macro in background

Run another instance of excel leaving wb with macro running in other instance?

"Andyjim" wrote:

I have a scheduled macro that downloads data every 10 minutes. A problem
arises though when the user has another workbook active when the macro is
running. The macro tries to run in the active workbook.
I could make the macro activate the correct workbook before doing the
download, but that interrupts the user's work in another workbook. Is there a
way to keep the scheduled macro in the background, and in the correct
workbook, leaving the user undisturbed working in a different active workbook?

Andy

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Run macro in background


I suppose I must be overlooking something obvious here, but what constitutes
another instance? Doesn't opening another Excel file launch another instance?
If not, how do you run another instance?

Andy
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Run macro in background

Probably not. If you use file|open, then that newly opened workbook will be in
the same already running instance of excel.

But you can start another instance of excel
Windows start button|run
type
excel
and hit ok

Then use file|open to open the other workbook.

Note that this is just having two different programs running (word and
powerpoint, or excel and excel). One instance can't control the other.



Andyjim wrote:

I suppose I must be overlooking something obvious here, but what constitutes
another instance? Doesn't opening another Excel file launch another instance?
If not, how do you run another instance?

Andy


--

Dave Peterson
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
Macro in Background Hager Excel Discussion (Misc queries) 2 January 19th 10 10:17 AM
How to run a macro in the background & how to end it? 41db14 Excel Programming 1 November 27th 06 02:06 AM
How do I run a macro in the background scrumboss Excel Discussion (Misc queries) 2 April 6th 06 10:50 AM
Check box text background remains white, does not match general background Stephen W. Hiemstra Excel Programming 1 November 19th 04 01:09 PM
Run macro in background Yohan Excel Programming 2 February 16th 04 11:38 AM


All times are GMT +1. The time now is 09:26 PM.

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"