+ Reply to Thread
Results 1 to 6 of 6

how to delete indivudal cells

  1. #1
    Forum Contributor
    Join Date
    08-02-2005
    Location
    LONDON
    MS-Off Ver
    OFFICE365
    Posts
    168

    how to delete indivudal cells

    I found this macro that delete entire rows if cells in column B are empty.
    Please Login or Register  to view this content.
    Can someone advise me if I have this correct if I want to delete CELLS in row "M"
    Please Login or Register  to view this content.
    Also is someone able to advise me on how to repeat it right the way down the workbook until last entry.
    Thanks
    Last edited by VBA Noob; 09-08-2007 at 01:14 PM.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Quote Originally Posted by tweacle
    Can someone advise me if I have this correct if I want to delete CELLS in row "M".
    M is a column.

    If you explained in detail what should be deleted under what conditions, it would be easier to help you achieve your goal.

    Does the code you posted do what you want? If not, what does it do/not do that you don't like?

  3. #3
    Forum Contributor
    Join Date
    08-02-2005
    Location
    LONDON
    MS-Off Ver
    OFFICE365
    Posts
    168
    Sorry what im trying to do is if the cells in column M and N are blank I need the data from the cells below to be copied into them and then the row below to be deleted.

    I.E If cells in M10 and N10 are blank I need the data from M11 and N11 to be copied into M and N 10 and then row 11 to be deleted.

    If poss I need this to run right the way down the worksheet. until the end.

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    I think this will do what you want. Note: it copy/deletes if BOTH M & N are empty.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    08-02-2005
    Location
    LONDON
    MS-Off Ver
    OFFICE365
    Posts
    168
    Many Thanks

  6. #6
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    You're welcome.

+ 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