ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Application.Run, doesn't return to calling procedure (https://www.excelbanter.com/excel-programming/414913-application-run-doesnt-return-calling-procedure.html)

Werner Rohrmoser

Application.Run, doesn't return to calling procedure
 
Hi,

after calling a procedure in another workbook with
Application.Run the program doesn't find back to
the calling procedure.

Are there common reasons for this behaviour?
Thank you

Regards
Werner

Excel XP SP3
Win XP SP3

Chip Pearson

Application.Run, doesn't return to calling procedure
 
Does the procedure called by Run execute properly? Is the procedure that
uses Run executed from a worksheet cell?


--
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)



"Werner Rohrmoser" wrote in message
...
Hi,

after calling a procedure in another workbook with
Application.Run the program doesn't find back to
the calling procedure.

Are there common reasons for this behaviour?
Thank you

Regards
Werner

Excel XP SP3
Win XP SP3



Werner Rohrmoser

Application.Run, doesn't return to calling procedure
 
Yes, the procedure executes and finishes properly.
It's started by an Command Button from the Forms Tool Bar, which is
located on a worksheet.

I fear I have to look deeper into my colleagues "spaghetti" program,
this was what I tried to prevent with my global question.

I tried some ideas, what might have caused the malfunction,
but only when I closed the workbook with the procedure I have called
by VBA than it doesn't come back.

Anyway thnaks for your reply.

Werner


All times are GMT +1. The time now is 07:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com