Originally Posted by
DMT Dave
Good point, can i mix the dim's and code within the same function ?
I maybe barking up the wrong tree but would that not open the CannonScan when i am clearing list (2 birds with same stone) ?
Or do you suggest moving further down the public function module ?
NO!, I mean just clear the list with the simple 3 lines of code wherever you were going to call it as a function?
So instead of
Code:
Blah Blah Blah
ClearList(Me.lstMainOptions)
just use
Code:
Blah Blah Blah
Dim varItem
For Each varItem In Me.lstRepeatNum.ItemsSelected
Me.lstRepeatNum.Selected(varItem) = False
Next
Though I always put my Dims at the top of the module.