Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Links / September 2003

Tip: Looking for answers? Try searching our database.

another simple question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MoiraGunn - 20 Sep 2003 02:32 GMT
Hi all,
I want to delete the last row in a matrix using a macro.
I know how to select the last cell but not the last row.
Can any one help?

Thanks, Kathy
J.E. McGimpsey - 20 Sep 2003 03:05 GMT
one way:

If you know the last cell, just use it's entirerow property:

   lastCell.EntireRow.Delete

or, if you know the range:
   
   With Range("A1").CurrentRegion
       .Item(.Count).EntireRow.Delete
   End With

> Hi all,
> I want to delete the last row in a matrix using a macro.
> I know how to select the last cell but not the last row.
> Can any one help?
>
> Thanks, Kathy
MoiraGunn - 20 Sep 2003 05:21 GMT
That worked thanks!!

> one way:
>
[quoted text clipped - 14 lines]
> >
> > Thanks, Kathy
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.