+ Reply to Thread
Results 1 to 5 of 5

Macro code needed to delete unnecessary data after 20 lines

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    13

    Macro code needed to delete unnecessary data after 20 lines

    Afternoon guys

    I have with me a spreadsheet and after every 20 lines it includes the logo of my company and blank lines

    If I want to deletes all the logo's at once, how would i go about coding this?

    Thanks
    Mo

    TEST.docx

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Macro code needed to delete unnecessary data after 20 lines

    So if I say, the Macro will delete all the Rows wherein the Cells in Column A & B are not blank, is that OK?

    Thank You,

    Deep
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    02-22-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Macro code needed to delete unnecessary data after 20 lines

    Hi Deep

    I'm not sure I understand, but

    What about a code which reads: After every 20 rows , delete the next 4 rows

    How does that sound?

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Macro code needed to delete unnecessary data after 20 lines

    delete the next 4 rows?
    ???


  5. #5
    Registered User
    Join Date
    02-22-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Macro code needed to delete unnecessary data after 20 lines

    I've identified a flaw in that. its not actually 4 rows

    But Is there any other way of solving this?

+ 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