Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello, all.
I want to run Macro1 from Book1.xls in Macro2 (Book2.xls). Macro1 has two arguments ByRef: Public Sub Macro1 (ByRef X As Integer, ByRef Y As Integer) ..... X = X * 2 Y = Y * 3 End Sub How can I execute Macro1 with passing changed value out from Macro1. Following code doesn't work: A = 10 B = 20 Application.run('Book1.xls!Macro1', A, B) I think Excel passes argyments ByVal (only value, but not reference). -- Alexander |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
i need help with a function application with multiple arguments | Excel Worksheet Functions | |||
application.dialogs(xlDialogPrint) - arguments | Excel Programming | |||
passing arguments by postion through application.run | Excel Programming | |||
ByRef question | Excel Programming | |||
Is ByVal always better if ByRef isn't necessary | Excel Programming |