Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default running a macro, while programming in vba at the same time

Hi,
I regularly run lengthy macros on excel 2007(that take about 20 hours at
a time). However, I have found that when I open a new excel application on
the same computer(I have a dual processor pentium with 2 gigs of ram) - with
the intention of developing new macros on completely new sheets - then the
macro I was originally running gets hung up and never finishes.
When I run the original macro, it is only using one processor.
So, is it possible for me to open a second excel application that
specifically uses the idle processor, without disturbing the original macro
which is running on the original processor? That way, I can develop new
macros while the old runs are running. (as it stands now, I can not run
macros and develop at the same time)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default running a macro, while programming in vba at the same time

Hi

From your explanation I suspect that you macro uses the
ActiveWorkbook/ActiveWorksheet syntax?

If this is the case, there will always be conflict opening another workbook
, as the new workbook is now the active workbook/worksheet.

There might be a way, but as yet I am not aware of it

HTH

"excelvbauser" wrote:

Hi,
I regularly run lengthy macros on excel 2007(that take about 20 hours at
a time). However, I have found that when I open a new excel application on
the same computer(I have a dual processor pentium with 2 gigs of ram) - with
the intention of developing new macros on completely new sheets - then the
macro I was originally running gets hung up and never finishes.
When I run the original macro, it is only using one processor.
So, is it possible for me to open a second excel application that
specifically uses the idle processor, without disturbing the original macro
which is running on the original processor? That way, I can develop new
macros while the old runs are running. (as it stands now, I can not run
macros and develop at the same time)

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default running a macro, while programming in vba at the same time

Thanks Steve,
The scripts do not have activeworkbook nor activeworksheet. However,
they do have `thiscell' which could be causing the problem.
I will try to think of a way to launch a second excel fully independent
of the first.

Thank you again


"steve_doc" wrote:

Hi

From your explanation I suspect that you macro uses the
ActiveWorkbook/ActiveWorksheet syntax?

If this is the case, there will always be conflict opening another workbook
, as the new workbook is now the active workbook/worksheet.

There might be a way, but as yet I am not aware of it

HTH

"excelvbauser" wrote:

Hi,
I regularly run lengthy macros on excel 2007(that take about 20 hours at
a time). However, I have found that when I open a new excel application on
the same computer(I have a dual processor pentium with 2 gigs of ram) - with
the intention of developing new macros on completely new sheets - then the
macro I was originally running gets hung up and never finishes.
When I run the original macro, it is only using one processor.
So, is it possible for me to open a second excel application that
specifically uses the idle processor, without disturbing the original macro
which is running on the original processor? That way, I can develop new
macros while the old runs are running. (as it stands now, I can not run
macros and develop at the same time)

  #4   Report Post  
Posted to microsoft.public.excel.programming
Tim Tim is offline
external usenet poster
 
Posts: 145
Default running a macro, while programming in vba at the same time

I've always understood that two different Excel *instances* (not just
workbooks) are completely independent in terms of macros and any other
aspects - ie. there is no "cross-talk" between different instances of the
application...

Anyone know different ?

Tim



"excelvbauser" wrote in message
...
Thanks Steve,
The scripts do not have activeworkbook nor activeworksheet. However,
they do have `thiscell' which could be causing the problem.
I will try to think of a way to launch a second excel fully independent
of the first.

Thank you again


"steve_doc" wrote:

Hi

From your explanation I suspect that you macro uses the
ActiveWorkbook/ActiveWorksheet syntax?

If this is the case, there will always be conflict opening another
workbook
, as the new workbook is now the active workbook/worksheet.

There might be a way, but as yet I am not aware of it

HTH

"excelvbauser" wrote:

Hi,
I regularly run lengthy macros on excel 2007(that take about 20
hours at
a time). However, I have found that when I open a new excel
application on
the same computer(I have a dual processor pentium with 2 gigs of ram) -
with
the intention of developing new macros on completely new sheets - then
the
macro I was originally running gets hung up and never finishes.
When I run the original macro, it is only using one processor.
So, is it possible for me to open a second excel application that
specifically uses the idle processor, without disturbing the original
macro
which is running on the original processor? That way, I can develop
new
macros while the old runs are running. (as it stands now, I can not run
macros and develop at the same time)



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default running a macro, while programming in vba at the same time

Assuming that you are not trying to develop add-ins or WBs that are open/in
use in the initial instance, it should not be a concern what another
instance is doing.

NickHK

"excelvbauser" wrote in message
...
Hi,
I regularly run lengthy macros on excel 2007(that take about 20 hours

at
a time). However, I have found that when I open a new excel application

on
the same computer(I have a dual processor pentium with 2 gigs of ram) -

with
the intention of developing new macros on completely new sheets - then the
macro I was originally running gets hung up and never finishes.
When I run the original macro, it is only using one processor.
So, is it possible for me to open a second excel application that
specifically uses the idle processor, without disturbing the original

macro
which is running on the original processor? That way, I can develop new
macros while the old runs are running. (as it stands now, I can not run
macros and develop at the same time)





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default running a macro, while programming in vba at the same time

Assuming that you are not trying to develop add-ins or WBs that are open/in
use in the initial instance, it should not be a concern what another
instance is doing.

NickHK

"Tim" <tim j williams at gmail dot com wrote in message
...
I've always understood that two different Excel *instances* (not just
workbooks) are completely independent in terms of macros and any other
aspects - ie. there is no "cross-talk" between different instances of the
application...

Anyone know different ?

Tim



"excelvbauser" wrote in message
...
Thanks Steve,
The scripts do not have activeworkbook nor activeworksheet. However,
they do have `thiscell' which could be causing the problem.
I will try to think of a way to launch a second excel fully

independent
of the first.

Thank you again


"steve_doc" wrote:

Hi

From your explanation I suspect that you macro uses the
ActiveWorkbook/ActiveWorksheet syntax?

If this is the case, there will always be conflict opening another
workbook
, as the new workbook is now the active workbook/worksheet.

There might be a way, but as yet I am not aware of it

HTH

"excelvbauser" wrote:

Hi,
I regularly run lengthy macros on excel 2007(that take about 20
hours at
a time). However, I have found that when I open a new excel
application on
the same computer(I have a dual processor pentium with 2 gigs of

ram) -
with
the intention of developing new macros on completely new sheets -

then
the
macro I was originally running gets hung up and never finishes.
When I run the original macro, it is only using one processor.
So, is it possible for me to open a second excel application that
specifically uses the idle processor, without disturbing the original
macro
which is running on the original processor? That way, I can develop
new
macros while the old runs are running. (as it stands now, I can not

run
macros and develop at the same time)





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
programming a macro to display the current time sherobot Excel Programming 2 September 30th 06 12:18 AM
Running a macro at a specified time The Bobka Excel Discussion (Misc queries) 1 June 30th 05 05:25 PM
Macro running time Pradip Jain Excel Programming 2 April 22nd 05 01:50 PM
Running a macro at a certain time Tam Excel Discussion (Misc queries) 3 March 2nd 05 02:50 PM
All time running macro gocush[_29_] Excel Programming 2 January 12th 05 03:19 PM


All times are GMT +1. The time now is 05:32 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"