Range select

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Please translate the following commands into working code.

Range A3 select
find the last row
go to F colum and select the aria A3 to Fi
then delete
and go to
Range (a1) select

Can anyone help me
GG
 
Dim cLastRow As Long
Dim rng As Range
cLastRow = Cells(Rows.Count, "A").End(xlUp).Row
Set rng = Range("A3:F" & cLastRow)
rng.Delete Shift:=xlShiftUp
Range("A1").Select


--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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

Back
Top