Respected Members seeking your inputs
I have public sub where i am storing the values in array and that is called thru main function it picks values rightly and stores it in list but when the Sub ends it does not retain value.
Kindly share your inputs on retaining value
Code
Public Sub Filter()
Set Ranger = worksheet.Range("A2:A" & worksheet.cells(Rows.count, "A").End(xlup).Row)
Ctr = 0
For each cell in Ranger
ReDim Preserve arrlist(ctr)
arrlist(ctr) = cell.text
ctr = ctr + 1
Next
End Sub
'Ctr As long, arrlist() as string, Ranger, cell as Range are declared Public at top
Display More