Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is it possible to remove the Select method in this case?
Hi all,
this code is from Stephen Bullen's book, Range("A1").Select lRealLastRow = Cells.Find("*", Range("A1"), xlFormulas, , xlByRows, _ xlPrevious).row I'd like to know can we use other statement instead of range("A1").Select Clara -- thank you so much for your help |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is it possible to remove the Select method in this case?
Unless you are doing something with the selection, I wouldn't use it. Try
commenting it out and see what happens. I'd also recommend that you preceed each Range object with a designation of the worksheet that the range is on, otherwise,it will use the activesheet by default. HTH, Barb Reinhardt "clara" wrote: Hi all, this code is from Stephen Bullen's book, Range("A1").Select lRealLastRow = Cells.Find("*", Range("A1"), xlFormulas, , xlByRows, _ xlPrevious).row I'd like to know can we use other statement instead of range("A1").Select Clara -- thank you so much for your help |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is it possible to remove the Select method in this case?
how about
LR = Cells(rows.count,"a").end(xlup).row -- Don Guillett SalesAid Software "clara" wrote in message ... Hi all, this code is from Stephen Bullen's book, Range("A1").Select lRealLastRow = Cells.Find("*", Range("A1"), xlFormulas, , xlByRows, _ xlPrevious).row I'd like to know can we use other statement instead of range("A1").Select Clara -- thank you so much for your help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Case without Select Case error problem | Excel Discussion (Misc queries) | |||
Is it possible to remove the Select method in this case? | Excel Programming | |||
End Select without Select Case, Block If without End If errors | Excel Programming | |||
Help with Select Case or Best Method | Excel Programming |