+ Reply to Thread
Results 1 to 7 of 7

Need to edit macro to delete every 5th CELL not every 5th row

  1. #1
    Registered User
    Join Date
    01-31-2016
    Location
    N Dakota
    MS-Off Ver
    07
    Posts
    16

    Need to edit macro to delete every 5th CELL not every 5th row

    I'm having two issues with this macro.

    1) I need to SELECT the column I want to run this macro on.
    2) I need it to delete ONLY every 5th cell, not the entire row.

    As it works now, of course, I don't need to select a column it simply deletes every 5th row.


    Please Login or Register  to view this content.

  2. #2
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Need to edit macro to delete every 5th CELL not every 5th row

    Do you want to delete the cell and have it moved up. or do you just need to make the cell empty and not move the other cells in the column

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,120

    Re: Need to edit macro to delete every 5th CELL not every 5th row

    How about
    Please Login or Register  to view this content.
    if you want to delete the cell & shift up, then replace the part in red with Delete

  4. #4
    Registered User
    Join Date
    01-31-2016
    Location
    N Dakota
    MS-Off Ver
    07
    Posts
    16

    Re: Need to edit macro to delete every 5th CELL not every 5th row

    Quote Originally Posted by Fluff13 View Post
    How about
    Please Login or Register  to view this content.
    if you want to delete the cell & shift up, then replace the part in red with Delete
    Absolutely perfect! Thank you! Thank you!

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,120

    Re: Need to edit macro to delete every 5th CELL not every 5th row

    Glad to help & thanks for the feedback

  6. #6
    Registered User
    Join Date
    01-31-2016
    Location
    N Dakota
    MS-Off Ver
    07
    Posts
    16

    Re: Need to edit macro to delete every 5th CELL not every 5th row

    You bet!

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,945

    Re: Need to edit macro to delete every 5th CELL not every 5th row

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Allow cell input, disable cell edit and delete
    By lzyshaman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-08-2019, 11:46 AM
  2. Macro only shows "create" button. Can't run/edit/delete.
    By nbpat in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-31-2019, 03:44 AM
  3. edit in code for populate range of cell in list box and code for delete any items
    By mazan2010 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2017, 03:33 PM
  4. Replies: 7
    Last Post: 10-30-2015, 05:08 AM
  5. [SOLVED] Macro to delete/edit other macros
    By Obfuscated in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-09-2012, 10:30 PM
  6. Macro Help - STop Delete & Edit
    By m_789 in forum Excel General
    Replies: 0
    Last Post: 06-20-2012, 10:40 AM
  7. [SOLVED] macro to copy and edit then delete a worksheet
    By lschuh in forum Excel General
    Replies: 13
    Last Post: 07-27-2005, 04:05 PM

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