Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default call function from another wb : problem

Hello,
This is the situation

Function UpdateMb

<instructions
application.run(<workbookname!<modulename.<functi onname())
<instructions

End function

When the application.run cmd is running, there is no runtime error. However
the function UpdateMb is rerun immediately without having run the function
from the other wb.

Thanks for your help
Francois.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default call function from another wb : problem

Hi Francois,

Have you tried stepping through your code. Put a break point F9 on the first
line in UpdateMb, or the single statement "Stop" without quotes. When the
code stops press Ctrl-L to see what called the function. Step through with
F8 or run to the next break or stop statement with F5. (Also look at Ctrl
F8, Shift F8 & Ctrl+Shift F8)

Off topic - did you sort out the problem you posted a while ago re showing
an Application.Dialog called from Macro-5 dialogsheet code.

Regards,
Peter T

"François" wrote in message
...
Hello,
This is the situation

Function UpdateMb

<instructions
application.run(<workbookname!<modulename.<functi onname())
<instructions

End function

When the application.run cmd is running, there is no runtime error.

However
the function UpdateMb is rerun immediately without having run the function
from the other wb.

Thanks for your help
Francois.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default call function from another wb : problem

Also - it didn't occur to me this might be a UDF. If it is, include the
following line just before the break point:

Debug.Print Application.Caller.Address

Ctrl-G to see the Immediate window.

Peter T

"Peter T" <peter_t@discussions wrote in message
...
Hi Francois,

Have you tried stepping through your code. Put a break point F9 on the

first
line in UpdateMb, or the single statement "Stop" without quotes. When the
code stops press Ctrl-L to see what called the function. Step through with
F8 or run to the next break or stop statement with F5. (Also look at Ctrl
F8, Shift F8 & Ctrl+Shift F8)

Off topic - did you sort out the problem you posted a while ago re showing
an Application.Dialog called from Macro-5 dialogsheet code.

Regards,
Peter T

"François" wrote in message
...
Hello,
This is the situation

Function UpdateMb

<instructions
application.run(<workbookname!<modulename.<functi onname())
<instructions

End function

When the application.run cmd is running, there is no runtime error.

However
the function UpdateMb is rerun immediately without having run the

function
from the other wb.

Thanks for your help
Francois.





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
call procedure problem stan Excel Discussion (Misc queries) 2 August 17th 09 06:11 PM
Is there a do not call function? pokdbz Excel Discussion (Misc queries) 2 December 27th 07 04:00 PM
how i can call the function reneabesmer Excel Worksheet Functions 2 May 2nd 05 12:13 PM
Function Call Phil Hageman Excel Programming 4 October 9th 03 04:32 PM
call function sirron Excel Programming 1 August 26th 03 03:39 PM


All times are GMT +1. The time now is 11:28 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"