Results 1 to 3 of 3

XlUp 55 rows and delete

Threaded View

  1. #1
    Registered User
    Join Date
    10-12-2010
    Location
    Columbus, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    9

    XlUp 55 rows and delete

    I'm looking to choose column B, move down to the last row of data and then delete everything in the last 55 rows from Column B over (A remains stagnant). Right now this is erroring out for me and there may be a much simpler way to do what I'm trying to do. Any help is appreciated.

    Range("B2").Select
        Selection.End(xlDown).Select
        ActiveWindow.SmallScroll Down:=-31
        Dim n As Long
        n = 55
        Cells(Rows.Count, "B").End(XlUp.Offset(1-n).
        ActiveCell.Select
        Range(Selection, Selection.End(xlToRight)).Select
        Range(Selection, Selection.End(xlDown)).Select
        Selection.ClearContents
    End Sub
    Last edited by Chad Kruse; 10-19-2010 at 01:26 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1