hi guys,
i'm a newb here as well with excel and vba, i'm trying to do my homework which requires me to pass values from an array in excel worksheet to VBA and print it in a msg box
i've tried
dim arr as variant
arr = range("A1:A6").value
msgbox arr
but it didn't work.
the array is number(double) and the msgbox would be combination between string and number
ex:the numbers are 1,2,3,4,5,6
that's the first step of the homework the second is i have 2 list of array
year:1999 - 2002
profit:10,20,30,40
i have to find the max profit and get the year when it occurs
i'd really appreciate any help/suggestions, oh and i did try the search function but couldn't get any relevant result.
Ray