Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Assuming that you're not modifying a parameter within a procedure, is there
any performance difference in passing the parameter as 'ByRef' or 'ByVal'. For example Dim arr as variant arr = Array(12,40) arr = TimesTwo(arr) Function TimesTwo(ByRef or ByVal arr as variant) Dim i as integer,arrTemp as variant Redim arrTemp(ubound(arr)) For i = lbound(arr) to ubound(arr) arrTemp(i) = 2 * arr(i) Next TimesTwo = arrTemp End Function Also can arrays only be declared as variants in situations such as this one. Thanks, Wayne C. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Impact of Fees on Growth Rate | Excel Discussion (Misc queries) | |||
Visualizing fiscal year impact | Excel Discussion (Misc queries) | |||
Impact of many VLOOKUPs in a spreadsheet | Excel Worksheet Functions | |||
OS Version impact on Excel functionality | Excel Worksheet Functions | |||
Hiding sheets - Impact on Speed | Excel Discussion (Misc queries) |