+ Reply to Thread
Results 1 to 2 of 2

Delete Every Other Range

  1. #1
    Registered User
    Join Date
    10-28-2016
    Location
    The Moon, Milkyway Galaxy
    MS-Off Ver
    2013
    Posts
    19

    Cool Delete Every Other Range

    I have a list of items that are 26 columns deep and about 600 rows long. A copy of that list, with edits to the data, is to the right of the first list. (A1:Z1 original record, AA1:AZ1 edited record)

    The format I need it in is:

    A1:Z1 = Original Record 1
    A2:Z2 = Edited Record 1
    A3:Z3 = Original Record 2
    A4:Z4 = Edited Record 2

    So far I've attempted this by adding a blank set of cells in the places that the edited record will go. Then, I tried to create a macro that selects A2:Z2, A4:Z4, A6:Z6.... and so on. I did this by creating a list and copying into word then recopying into the VBA so it show up as:

    Please Login or Register  to view this content.
    But I get a syntax error on with a yellow arrow that points at -> Sub TreeFiddy()

    I have no idea what this means. If anyone can shed some light on a better way to do this or help me fix the code I did write, I would be very grateful.

    Thank you taking the time to check out this problem.

  2. #2
    Registered User
    Join Date
    10-28-2016
    Location
    The Moon, Milkyway Galaxy
    MS-Off Ver
    2013
    Posts
    19

    Re: Delete Every Other Range

    Okay I think I solved my problem with the same way I inserted blank rows. By adding the new list to the bottom of the old list, inserting a column to the left of the now 1200 record list. Putting numbers 1-600 next to the original records and then 1-600 starting at the edited records, sort by the number column lowest to highest and it auto sorted.


    If anyone else would like to add how to do this in VBA it would still be good to know! Thanks.

+ 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. Rows delete formula as per range of cell values with counter to delete # rows
    By qureshi2016 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-03-2017, 09:35 AM
  2. [SOLVED] Macro to find user input date range and delete everything outside range
    By sudric in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-13-2015, 11:52 AM
  3. VBA code to delete the FILTERED range and moving the cell up (dont Delete entire row)
    By mchilapur in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2015, 07:48 AM
  4. Code look through range of cells, find blanks & delete cell range in the same row,
    By EagleInsight in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-10-2014, 11:24 AM
  5. Macro to delete row within a specified range or disallow if out of range
    By Mayweed in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-07-2011, 01:50 PM
  6. Replies: 1
    Last Post: 03-08-2006, 06:10 AM
  7. [SOLVED] Range.Delete and Range.Resize.Name performance issues
    By Test.File in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2005, 12:54 PM

Tags for this Thread

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