Is it possible to remove the Select method in this case?

G

Guest

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
 
G

Guest

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
 

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