Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I just can remember how to do the following.
I need to return 2 variables from a function so that I can use them within a sub. In this case 2 column numbers so that I can use them to find something. Any help would be appreciated regards David ----------- Sub Find_Columns Dim Col1, col2 as integer Col1 = YColumn(check) End sub Function YColumn(check As String) Select Case check Case "Vegetables" Col1 = 2 Col2 =4 Case "Mellons" Col1 =5 Col2 = 6 End Select End function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Multiple variables to sort and sum, return values<0 with sum refer | Excel Worksheet Functions | |||
Lookup function for two variables and return another cell? | Excel Worksheet Functions | |||
using =IF function with 12 variables | Excel Discussion (Misc queries) | |||
Lookup based on two variables and return a third | Excel Worksheet Functions | |||
2 Conditions True, Many Variables, Return Result | Excel Worksheet Functions |