+ Reply to Thread
Results 1 to 4 of 4

Insert Rows between unlkike cells, copy paste, then delete

  1. #1
    Registered User
    Join Date
    06-04-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    36

    Insert Rows between unlkike cells, copy paste, then delete

    Copy of Resource Allocation.xlsName_Sort.xlsHi There, I have created a small example of what I would like to achieve, see Name_Sort code below or the attached workbook. My question is, why does it not work whem implemented in "Copy of Resource Allocation", code below also attached. I just do not understand where my problem in Resource Allocation is. There seems to be an issue with inserting and removing the rows but I do not see why. I appreciate the time taken to look at the code I know there is a lot.

    Name_Sort:
    Please Login or Register  to view this content.
    Copy of Resource Allocation:
    Please Login or Register  to view this content.
    Last edited by am_hawk; 10-21-2013 at 02:20 PM. Reason: add attachments

  2. #2
    Registered User
    Join Date
    06-04-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    36

    Re: Insert Rows between unlkike cells, copy paste, then delete

    I now understand that it is inserting a row after the last cell with data in it. If you put the letter A down columb B past where the names end you will see what happens. How can I have the macro stop at the last cell with text as opposed to do until ""? I tried using variables but that did not work out it just went all the way to the bottom of the sheet and the inserted rows were still the same as before...

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Insert Rows between unlkike cells, copy paste, then delete

    I don't see the attachment.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Insert Rows between unlkike cells, copy paste, then delete

    Quote Originally Posted by am_hawk View Post
    I now understand that it is inserting a row after the last cell with data in it. If you put the letter A down columb B past where the names end you will see what happens. How can I have the macro stop at the last cell with text as opposed to do until ""? I tried using variables but that did not work out it just went all the way to the bottom of the sheet and the inserted rows were still the same as before...
    To select the last cell with data in Column A

    Please Login or Register  to view this content.

+ 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. Copy Paste the Missing Values in a Specified Cells and Insert the Rows into a Report
    By judeprem in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-30-2013, 01:46 PM
  2. Macro to Copy Values, Insert Row, Paste in Another, Delete Original Data
    By JimPDX in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-23-2013, 05:35 AM
  3. Excel Macro to insert two rows based on condition and copy and paste multiple cells
    By mannabhalo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-13-2012, 12:56 PM
  4. [SOLVED] Copy, paste and insert new rows into new sheets
    By nanas in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-10-2012, 10:35 PM
  5. Copy and paste insert rows with protected cells in protected worksheet
    By excel_gecko in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-24-2012, 05:50 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