+ Reply to Thread
Results 1 to 2 of 2

Deleting Selected cells

Hybrid View

  1. #1
    Registered User
    Join Date
    09-20-2006
    Posts
    47

    Deleting Selected cells

    I have this code:

    OASh.Range("A3:A65536").SpecialCells(xlCellTypeBlanks).EntireRow.Delete (xlShiftUp)

    Where it delete's the whole row. But now i want it to look down cells A3:A65536 and see if they are empty. If they are we then need to delete this cell along with the cell next to it in column B.

    Any Ideas??

    Thanks

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by test1986
    I have this code:

    OASh.Range("A3:A65536").SpecialCells(xlCellTypeBlanks).EntireRow.Delete (xlShiftUp)

    Where it delete's the whole row. But now i want it to look down cells A3:A65536 and see if they are empty. If they are we then need to delete this cell along with the cell next to it in column B.

    Any Ideas??

    Thanks
    Hi,

    try

    iLastRow = ActiveSheet.Range("A65536").End(xlUp).Row

    if thats the row you're on they're all empty,

    hth
    ---
    Si fractum non sit, noli id reficere.

+ Reply to Thread

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