VBA: Extracting Range from worksheet and inserting into userform

M

Mcasteel

_What_is_the_\"ME\"_in_your_recommended_solution?_ It looks like thi
will probably work for what Im doing. Im just not sure If I understan
what the ME. is.

and 2nd....

ANYONE HAVE AN IDEA ON HOW TO SEACH AND RETREIVE THAT CUSTSSN FROM
COLUMN OF 300 OR MORE CUSTSSN'S

Thanks again, this is a a great site, Im glad I came across it
 
B

Bob Phillips

Me refers to the object that the code is being executed from, so in a
userform it refers to the form, in a worksheet it refers to that worksheet.
It is a simple way of ensuring you are referring to 'this' container.

What does the second part mean exactly? To search you have a customer number
to search for, so do you just want the index within the customer numbers
where that item is found? Something like

iRow = Worksheetfunction.Match(sCustSSN,
Worksheets("Sheet1").Range("A1:A300"),0)
if iRow = 0 Then
MsgBox "Not found"
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top