A
abxy
ok, a userform macro that i've created takes waaay too long to complet
it's task of searching thru the entire workbook to find whatever cel
has the same value that's in TextBox1. now, in an effort to try an
speed up the macro, i'm trying to limit what it's searching thru...i
still needs to search thru the entire workbook for the cell that ha
the same value as textbox1, but the cell is always going be in column
between A1 and A275.
here's the single line of the code as is(ws was defined as WorkShee
earlier in the code):
ws.Cells.Find(what:=textbox1.value).Activate
...now, my guess is that i can change the line to this:
ws.Cells.Range("A1:A275").Find(what:=textbox1.value).Activate
or this:
ws.Cells.Find(what:=textbox1.value).Range("A1:A275").Activate
...and one of those guesses will change it so that it only searche
thru A1 to A275...however I'm not sure if either works, if one of the
works, can you verify to that, and tell me, and if they don't, can yo
offer any help on how i can put that range on
it's task of searching thru the entire workbook to find whatever cel
has the same value that's in TextBox1. now, in an effort to try an
speed up the macro, i'm trying to limit what it's searching thru...i
still needs to search thru the entire workbook for the cell that ha
the same value as textbox1, but the cell is always going be in column
between A1 and A275.
here's the single line of the code as is(ws was defined as WorkShee
earlier in the code):
ws.Cells.Find(what:=textbox1.value).Activate
...now, my guess is that i can change the line to this:
ws.Cells.Range("A1:A275").Find(what:=textbox1.value).Activate
or this:
ws.Cells.Find(what:=textbox1.value).Range("A1:A275").Activate
...and one of those guesses will change it so that it only searche
thru A1 to A275...however I'm not sure if either works, if one of the
works, can you verify to that, and tell me, and if they don't, can yo
offer any help on how i can put that range on