PC Review


Reply
Thread Tools Rate Thread

Application.run is not working

 
 
testingguy2007
Guest
Posts: n/a
 
      11th Mar 2007
I have been using Application.run for years, and all of a sudden on this
computer, it has stopped working when I open a file. Note this does not
occur on all machines for some odd reason.

Here is a code snipet.

Code_file = "stl_code.xls"

Workbooks.open FileName:=ATL_Path, ReadOnly:=True
Application.Run Macro:=Code_File & "!Stl_Init"

If I put a stop on Application.run -- and try to step through this,
application.run just never executes. It just sits there every press of
"step into". However if I just press the play button - the code eventually
gets through this, but from what I can see never runs this stl_init procedure,
as there are variable set.

I am running Excel Version 2002 (10.6823.6825) SP3.

I have run into issues like this in the past -- where long files names --
those in code_file are longer than 15 characters -- just reduced the filename
size. But this one I cannot figure out, and I cannot trap on it either.

As inidcated earlier -- it seems to work fine on another machine -- same
Excel version as indicated above.

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      11th Mar 2007
If this is just a sample workbook name, maybe you could try this:

Application.Run Macro:="'" & Code_File & "'!Stl_Init"

(Notice the extra apostrophe in the last portion, too.)

testingguy2007 wrote:
>
> I have been using Application.run for years, and all of a sudden on this
> computer, it has stopped working when I open a file. Note this does not
> occur on all machines for some odd reason.
>
> Here is a code snipet.
>
> Code_file = "stl_code.xls"
>
> Workbooks.open FileName:=ATL_Path, ReadOnly:=True
> Application.Run Macro:=Code_File & "!Stl_Init"
>
> If I put a stop on Application.run -- and try to step through this,
> application.run just never executes. It just sits there every press of
> "step into". However if I just press the play button - the code eventually
> gets through this, but from what I can see never runs this stl_init procedure,
> as there are variable set.
>
> I am running Excel Version 2002 (10.6823.6825) SP3.
>
> I have run into issues like this in the past -- where long files names --
> those in code_file are longer than 15 characters -- just reduced the filename
> size. But this one I cannot figure out, and I cannot trap on it either.
>
> As inidcated earlier -- it seems to work fine on another machine -- same
> Excel version as indicated above.


--

Dave Peterson
 
Reply With Quote
 
testingguy2007
Guest
Posts: n/a
 
      11th Mar 2007
Hi Dave,

I read a hint like this, this morning. However that did not work either.
It seems that Excel gets stuck, as when I put a break on it, I cannot even
step into it - 100's of step into tries, as it just eventually just gives up.

I thought my security - which is set to LOW now -- was the issue, but still
it just gets stuck executing the code.

Do you have another suggestion?

Thanks


Dave Peterson wrote:
>If this is just a sample workbook name, maybe you could try this:
>
>Application.Run Macro:="'" & Code_File & "'!Stl_Init"
>
>(Notice the extra apostrophe in the last portion, too.)
>
>> I have been using Application.run for years, and all of a sudden on this
>> computer, it has stopped working when I open a file. Note this does not

>[quoted text clipped - 21 lines]
>> As inidcated earlier -- it seems to work fine on another machine -- same
>> Excel version as indicated above.

>


 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      11th Mar 2007
No, I don't.

If you create a couple of test workbooks with simple macros, do they behave
better?

I'm not sure how that will help, but maybe it'll give you a clue what is
different?????

testingguy2007 wrote:
>
> Hi Dave,
>
> I read a hint like this, this morning. However that did not work either.
> It seems that Excel gets stuck, as when I put a break on it, I cannot even
> step into it - 100's of step into tries, as it just eventually just gives up.
>
> I thought my security - which is set to LOW now -- was the issue, but still
> it just gets stuck executing the code.
>
> Do you have another suggestion?
>
> Thanks
>
> Dave Peterson wrote:
> >If this is just a sample workbook name, maybe you could try this:
> >
> >Application.Run Macro:="'" & Code_File & "'!Stl_Init"
> >
> >(Notice the extra apostrophe in the last portion, too.)
> >
> >> I have been using Application.run for years, and all of a sudden on this
> >> computer, it has stopped working when I open a file. Note this does not

> >[quoted text clipped - 21 lines]
> >> As inidcated earlier -- it seems to work fine on another machine -- same
> >> Excel version as indicated above.

> >


--

Dave Peterson
 
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
Web Application and Windows Application working together Terry Holland Microsoft VB .NET 5 28th Mar 2009 05:01 PM
Web Application and Windows Application working together Terry Holland Microsoft ASP .NET 1 25th Mar 2009 01:47 PM
Application Error - CD MFC Application has stopped working vinodsp2001@gmail.com Windows Vista General Discussion 0 6th Sep 2007 05:28 AM
Application not working =?Utf-8?B?amVyaW5n?= Microsoft Windows 2000 Terminal Server Applications 0 28th Apr 2006 01:28 PM
Application log not working =?Utf-8?B?TWlrZSBB?= Microsoft Windows 2000 1 17th Oct 2003 07:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:08 PM.