ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   VBA Function (https://www.excelbanter.com/excel-discussion-misc-queries/43551-vba-function.html)

Jeff

VBA Function
 
I have a main program in VBA and it calls another program=Blend several times.

"Blend" depends on two array inputs that change in the Main program.

Is there anyway to specify the inputs when I "Call Blend"

like "Call Blend(x,y)" where I set x=Array1 and y=Array2 ?

Thanks

Bob Phillips

Yes, but your sub has to use them

Sub Blend(ary1, ary2)

'do something with ary1 and ary2

End Sub

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jeff" wrote in message
...
I have a main program in VBA and it calls another program=Blend several

times.

"Blend" depends on two array inputs that change in the Main program.

Is there anyway to specify the inputs when I "Call Blend"

like "Call Blend(x,y)" where I set x=Array1 and y=Array2 ?

Thanks





All times are GMT +1. The time now is 09:49 PM.

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