LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default Calling procedure from another WKB with parameters

I have two wkb's say Book1.xls and book2.xls

from book1 I am calling a procedure(with arguments : Run
"book2.xls!test_msgbox(4,8)"


sub in book 2 is :
Sub test_msgbox(int_1 As Integer, int_2 As Integer)
int_1 = int_1 + 2
int_2 = int_2 + 3
MsgBox int_1 + int_2
End Sub

msgbox comes up twice. It comes up once with result 17 and after i hit OK it
is still there. Second time when i hit OK..msgbox closes.

But if i refer to a procedure without passing any values it works fine.

Any ideas what could be the reason. and how could it be rectified.

Thanks,
Ajit


--
Ajit
 
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
Calling a procedure in a procedure Norman Jones Excel Programming 8 August 20th 04 07:53 PM
Calling a procedure in a procedure N10 Excel Programming 2 August 18th 04 12:49 AM
Calling a procedure in a procedure Don Guillett[_4_] Excel Programming 1 August 17th 04 11:31 PM
How to Activate procedure with parameters ivarsb Excel Programming 3 July 27th 04 10:42 AM
Calling a .Net Procedure from a Macro Scott Eguires Excel Programming 0 December 10th 03 10:35 PM


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

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"