PC Review


Reply
Thread Tools Rate Thread

another macro is running ... how to recognise that process in code???

 
 
Matthew Dodds
Guest
Posts: n/a
 
      17th Apr 2007
I have written an AddIn (call it AddIn_2) which picks up where another
(AddIn_1) leaves off.

AddIn_2 uses events to identify when a particular worksheet is
activated to enable a menu item.

AddIn_1 creates that worksheet and reiteratively activates it during
its process ... causing a messy crash. AddIn_1 is a commercial product
and I have no access to its code.

I want to be able to write a clause like
if AddIn_1 is running

end if

 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWFkaGFu?=
Guest
Posts: n/a
 
      18th Apr 2007
Hi, in my opinion, any AddIn will expose its methods and properties. You
should try using the autolist feature of VBA to find out its methods, which
might help you in understanding how it works.

"Matthew Dodds" wrote:

> I have written an AddIn (call it AddIn_2) which picks up where another
> (AddIn_1) leaves off.
>
> AddIn_2 uses events to identify when a particular worksheet is
> activated to enable a menu item.
>
> AddIn_1 creates that worksheet and reiteratively activates it during
> its process ... causing a messy crash. AddIn_1 is a commercial product
> and I have no access to its code.
>
> I want to be able to write a clause like
> if AddIn_1 is running
>
> end if
>
>

 
Reply With Quote
 
=?Utf-8?B?TWFkaGFu?=
Guest
Posts: n/a
 
      18th Apr 2007
Hi, in my opinion, any AddIn will expose its methods and properties. You
should try using the autolist feature of VBA to find out its methods, which
might help you in understanding how it works.

"Matthew Dodds" wrote:

> I have written an AddIn (call it AddIn_2) which picks up where another
> (AddIn_1) leaves off.
>
> AddIn_2 uses events to identify when a particular worksheet is
> activated to enable a menu item.
>
> AddIn_1 creates that worksheet and reiteratively activates it during
> its process ... causing a messy crash. AddIn_1 is a commercial product
> and I have no access to its code.
>
> I want to be able to write a clause like
> if AddIn_1 is running
>
> end if
>
>

 
Reply With Quote
 
Matthew Dodds
Guest
Posts: n/a
 
      19th Apr 2007
Thanks Madhan, I haven't come across the autolist feature, and F1
offers no help; how do I go about using it?
Thanks

Matthew




On 18 Apr, 16:44, Madhan <Mad...@discussions.microsoft.com> wrote:
> Hi, in my opinion, any AddIn will expose its methods and properties. You
> should try using the autolist feature of VBA to find out its methods, which
> might help you in understanding how it works.
>
>
>
> "Matthew Dodds" wrote:
> > I have written an AddIn (call it AddIn_2) which picks up where another
> > (AddIn_1) leaves off.

>
> > AddIn_2 uses events to identify when a particular worksheet is
> > activated to enable a menu item.

>
> > AddIn_1 creates that worksheet and reiteratively activates it during
> > its process ... causing a messy crash. AddIn_1 is a commercial product
> > and I have no access to its code.

>
> > I want to be able to write a clause like
> > if AddIn_1 is running

>
> > end if- Hide quoted text -

>
> - Show quoted text -



 
Reply With Quote
 
Tim Williams
Guest
Posts: n/a
 
      20th Apr 2007
As far as I know only one VBA procedure can run at a time, so add-in1 should
not be running when your code (add-in2) runs.

That said, it doesn't always appear that way and crashes or hangs can be
tricky to avoid in these circumstances.

Tim

"Matthew Dodds" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks Madhan, I haven't come across the autolist feature, and F1
> offers no help; how do I go about using it?
> Thanks
>
> Matthew
>
>
>
>
> On 18 Apr, 16:44, Madhan <Mad...@discussions.microsoft.com> wrote:
>> Hi, in my opinion, any AddIn will expose its methods and properties. You
>> should try using the autolist feature of VBA to find out its methods,
>> which
>> might help you in understanding how it works.
>>
>>
>>
>> "Matthew Dodds" wrote:
>> > I have written an AddIn (call it AddIn_2) which picks up where another
>> > (AddIn_1) leaves off.

>>
>> > AddIn_2 uses events to identify when a particular worksheet is
>> > activated to enable a menu item.

>>
>> > AddIn_1 creates that worksheet and reiteratively activates it during
>> > its process ... causing a messy crash. AddIn_1 is a commercial product
>> > and I have no access to its code.

>>
>> > I want to be able to write a clause like
>> > if AddIn_1 is running

>>
>> > end if- Hide quoted text -

>>
>> - Show quoted text -

>
>



 
Reply With Quote
 
Matthew Dodds
Guest
Posts: n/a
 
      23rd Apr 2007
Thanks Tim, I think you're right; but simultaneous AddIn runs isn't
the issue.

What I wanted to do was to recognise in code when AddIn_1 was running,
and stop the eventCapture enabled by AddIn_2 from being triggered (my
AddIn_2 uses activation of a worksheet created by AddIN_1 to create a
menu; since AddIn_1 repeatedly activates this sheet during its own
run, this causes problems if my AddIn_2 is installed at the time)

Any ideas anyone ....?

On 20 Apr, 07:41, "Tim Williams" <timjwilliams at gmail dot com>
wrote:
> As far as I know only one VBA procedure can run at a time, so add-in1 should
> not be running when your code (add-in2) runs.
>
> That said, it doesn't always appear that way and crashes or hangs can be
> tricky to avoid in these circumstances.
>
> Tim
>
> "Matthew Dodds" <matthewgdo...@hotmail.com> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> > Thanks Madhan, I haven't come across the autolist feature, and F1
> > offers no help; how do I go about using it?
> > Thanks

>
> > Matthew

>
> > On 18 Apr, 16:44, Madhan <Mad...@discussions.microsoft.com> wrote:
> >> Hi, in my opinion, any AddIn will expose its methods and properties. You
> >> should try using the autolist feature of VBA to find out its methods,
> >> which
> >> might help you in understanding how it works.

>
> >> "Matthew Dodds" wrote:
> >> > I have written an AddIn (call it AddIn_2) which picks up where another
> >> > (AddIn_1) leaves off.

>
> >> > AddIn_2 uses events to identify when a particular worksheet is
> >> > activated to enable a menu item.

>
> >> > AddIn_1 creates that worksheet and reiteratively activates it during
> >> > its process ... causing a messy crash. AddIn_1 is a commercial product
> >> > and I have no access to its code.

>
> >> > I want to be able to write a clause like
> >> > if AddIn_1 is running

>
> >> > end if- Hide quoted text -

>
> >> - Show quoted text -- Hide quoted text -

>
> - Show quoted text -



 
Reply With Quote
 
Tim
Guest
Posts: n/a
 
      24th Apr 2007
So you mean "loaded" rather than "running" ?

Tim


"Matthew Dodds" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks Tim, I think you're right; but simultaneous AddIn runs isn't
> the issue.
>
> What I wanted to do was to recognise in code when AddIn_1 was running,
> and stop the eventCapture enabled by AddIn_2 from being triggered (my
> AddIn_2 uses activation of a worksheet created by AddIN_1 to create a
> menu; since AddIn_1 repeatedly activates this sheet during its own
> run, this causes problems if my AddIn_2 is installed at the time)
>
> Any ideas anyone ....?
>
> On 20 Apr, 07:41, "Tim Williams" <timjwilliams at gmail dot com>
> wrote:
>> As far as I know only one VBA procedure can run at a time, so add-in1
>> should
>> not be running when your code (add-in2) runs.
>>
>> That said, it doesn't always appear that way and crashes or hangs can be
>> tricky to avoid in these circumstances.
>>
>> Tim
>>
>> "Matthew Dodds" <matthewgdo...@hotmail.com> wrote in message
>>
>> news:(E-Mail Removed)...
>>
>>
>>
>> > Thanks Madhan, I haven't come across the autolist feature, and F1
>> > offers no help; how do I go about using it?
>> > Thanks

>>
>> > Matthew

>>
>> > On 18 Apr, 16:44, Madhan <Mad...@discussions.microsoft.com> wrote:
>> >> Hi, in my opinion, any AddIn will expose its methods and properties.
>> >> You
>> >> should try using the autolist feature of VBA to find out its methods,
>> >> which
>> >> might help you in understanding how it works.

>>
>> >> "Matthew Dodds" wrote:
>> >> > I have written an AddIn (call it AddIn_2) which picks up where
>> >> > another
>> >> > (AddIn_1) leaves off.

>>
>> >> > AddIn_2 uses events to identify when a particular worksheet is
>> >> > activated to enable a menu item.

>>
>> >> > AddIn_1 creates that worksheet and reiteratively activates it during
>> >> > its process ... causing a messy crash. AddIn_1 is a commercial
>> >> > product
>> >> > and I have no access to its code.

>>
>> >> > I want to be able to write a clause like
>> >> > if AddIn_1 is running

>>
>> >> > end if- Hide quoted text -

>>
>> >> - Show quoted text -- Hide quoted text -

>>
>> - Show quoted text -

>
>



 
Reply With Quote
 
Tim Williams
Guest
Posts: n/a
 
      24th Apr 2007
'*******************************
dim wb as workbook
on error resume next
set wb=workbooks("addin1.xla")
on error goto 0

if not wb is nothing then
'disable event in addin2
end if
'********************************
Tim

"Tim" <tim j williams at gmail dot com> wrote in message
news:OtBs$(E-Mail Removed)...
> So you mean "loaded" rather than "running" ?
>
> Tim
>
>
> "Matthew Dodds" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Thanks Tim, I think you're right; but simultaneous AddIn runs isn't
>> the issue.
>>
>> What I wanted to do was to recognise in code when AddIn_1 was running,
>> and stop the eventCapture enabled by AddIn_2 from being triggered (my
>> AddIn_2 uses activation of a worksheet created by AddIN_1 to create a
>> menu; since AddIn_1 repeatedly activates this sheet during its own
>> run, this causes problems if my AddIn_2 is installed at the time)
>>
>> Any ideas anyone ....?
>>
>> On 20 Apr, 07:41, "Tim Williams" <timjwilliams at gmail dot com>
>> wrote:
>>> As far as I know only one VBA procedure can run at a time, so add-in1
>>> should
>>> not be running when your code (add-in2) runs.
>>>
>>> That said, it doesn't always appear that way and crashes or hangs can be
>>> tricky to avoid in these circumstances.
>>>
>>> Tim
>>>
>>> "Matthew Dodds" <matthewgdo...@hotmail.com> wrote in message
>>>
>>> news:(E-Mail Removed)...
>>>
>>>
>>>
>>> > Thanks Madhan, I haven't come across the autolist feature, and F1
>>> > offers no help; how do I go about using it?
>>> > Thanks
>>>
>>> > Matthew
>>>
>>> > On 18 Apr, 16:44, Madhan <Mad...@discussions.microsoft.com> wrote:
>>> >> Hi, in my opinion, any AddIn will expose its methods and properties.
>>> >> You
>>> >> should try using the autolist feature of VBA to find out its methods,
>>> >> which
>>> >> might help you in understanding how it works.
>>>
>>> >> "Matthew Dodds" wrote:
>>> >> > I have written an AddIn (call it AddIn_2) which picks up where
>>> >> > another
>>> >> > (AddIn_1) leaves off.
>>>
>>> >> > AddIn_2 uses events to identify when a particular worksheet is
>>> >> > activated to enable a menu item.
>>>
>>> >> > AddIn_1 creates that worksheet and reiteratively activates it
>>> >> > during
>>> >> > its process ... causing a messy crash. AddIn_1 is a commercial
>>> >> > product
>>> >> > and I have no access to its code.
>>>
>>> >> > I want to be able to write a clause like
>>> >> > if AddIn_1 is running
>>>
>>> >> > end if- Hide quoted text -
>>>
>>> >> - Show quoted text -- Hide quoted text -
>>>
>>> - Show quoted text -

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change process bar % when macro is running Alex St-Pierre Microsoft Excel Programming 0 12th Mar 2008 06:16 PM
macro process running in task manager after the job is done Phillip Microsoft Access 3 4th Jan 2008 08:00 AM
macro process running in task manager after the job is done Phillip Microsoft Access 0 2nd Jan 2008 04:01 PM
Macro to enter data from a bar code scanner and process the info Michael Microsoft Access Macros 0 10th Jan 2006 02:34 PM
Running a VB code from Macro =?Utf-8?B?Q2FudXRl?= Microsoft Access VBA Modules 1 8th Mar 2005 07:27 AM


Features
 

Advertising
 

Newsgroups
 


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