Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
GG GG is offline
external usenet poster
 
Posts: 22
Default Range select


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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Range select

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)


"GG" wrote in message
...

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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can change range to select active rows instead of :=Range("S10 ldiaz Excel Discussion (Misc queries) 7 August 29th 08 03:52 PM
When entering data into a range of cells, select the entire range. Q Excel Discussion (Misc queries) 0 September 26th 07 04:36 AM
Select a range hsg Excel Programming 3 December 28th 04 08:23 AM
Select Sheet then Select Range Gee[_2_] Excel Programming 3 May 27th 04 10:10 PM
Select Range as far as..... universal[_24_] Excel Programming 4 January 15th 04 03:51 PM


All times are GMT +1. The time now is 02:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"