+ Reply to Thread
Results 1 to 12 of 12

Insert Entire Row wont stop

  1. #1
    Forum Contributor
    Join Date
    02-23-2015
    Location
    united kingdom
    MS-Off Ver
    14.0.7143.5000 (32-bit)
    Posts
    124

    Insert Entire Row wont stop

    I have a code that suppose to insert entire row if 'IF' statement is fulfiled but it does insert multiple rows and wont stop until i stop running macro manualy.

    Here is part of my code:

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    07-15-2015
    Location
    South East England
    MS-Off Ver
    2010 & 2013
    Posts
    72

    Re: Insert Entire Row wont stop

    Try
    Please Login or Register  to view this content.

  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 Entire Row wont stop

    Maybe:

    Please Login or Register  to view this content.
    You should loop from bottom to top when inserting rows.

  4. #4
    Forum Contributor
    Join Date
    02-23-2015
    Location
    united kingdom
    MS-Off Ver
    14.0.7143.5000 (32-bit)
    Posts
    124

    Re: Insert Entire Row wont stop

    Quote Originally Posted by Joe Bushfield View Post
    Try
    Please Login or Register  to view this content.
    did not change anything

  5. #5
    Forum Contributor
    Join Date
    02-23-2015
    Location
    united kingdom
    MS-Off Ver
    14.0.7143.5000 (32-bit)
    Posts
    124

    Re: Insert Entire Row wont stop

    Quote Originally Posted by JOHN H. DAVIS View Post
    Maybe:

    Please Login or Register  to view this content.
    You should loop from bottom to top when inserting rows.
    I tried this and nothig happens (no row inserted)

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

    Re: Insert Entire Row wont stop

    Are both conditions being met? Can you attach a sample where it doesn't work?

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    02-23-2015
    Location
    united kingdom
    MS-Off Ver
    14.0.7143.5000 (32-bit)
    Posts
    124

    Re: Insert Entire Row wont stop

    Quote Originally Posted by JOHN H. DAVIS View Post
    Are both conditions being met? Can you attach a sample where it doesn't work?

    Please Login or Register  to view this content.
    Both conditions are being met .
    When i do

    Please Login or Register  to view this content.
    it does work i.e. does place entire row below cell of interest but it carries on forever instead of stopping after inserting one row....

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

    Re: Insert Entire Row wont stop

    Can you attach a sample where it doesn't work. You should loop from bottom to top when inserting rows.

  9. #9
    Forum Contributor
    Join Date
    02-23-2015
    Location
    united kingdom
    MS-Off Ver
    14.0.7143.5000 (32-bit)
    Posts
    124

    Re: Insert Entire Row wont stop

    Quote Originally Posted by JOHN H. DAVIS View Post
    Can you attach a sample where it doesn't work. You should loop from bottom to top when inserting rows.
    ok
    here is a samplesample.xlsm

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

    Re: Insert Entire Row wont stop

    This works for me on the sample you provided when the conditions are met.

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    02-23-2015
    Location
    united kingdom
    MS-Off Ver
    14.0.7143.5000 (32-bit)
    Posts
    124

    Re: Insert Entire Row wont stop

    Quote Originally Posted by JOHN H. DAVIS View Post
    This works for me on the sample you provided when the conditions are met.

    Please Login or Register  to view this content.
    Yes, #
    You are right,
    My bad...
    I had in my code a code to sort data

    Please Login or Register  to view this content.
    so my macro did add the row but then sorting removed empty rows:DD

    many thanks

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

    Re: Insert Entire Row wont stop

    Glad you got it worked out and thanks for the feedback and the rep.

+ 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. [SOLVED] Creating tables in my spreadsheet wont let me insert a new row!!!
    By Antligen in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-17-2014, 07:26 AM
  2. [SOLVED] VBA codes to insert the rows and copy the first entire row text and insert sheet
    By PRADEEPB270 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-26-2013, 05:05 AM
  3. Stop Inserting Entire Row, Only Insert Range
    By NaNaBoo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-25-2009, 10:27 PM
  4. Why wont this macro stop?
    By liquidskin in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-14-2008, 04:43 PM
  5. 20 digit wont stop ending in zeros
    By bumble78 in forum Excel General
    Replies: 3
    Last Post: 08-17-2006, 08:00 PM
  6. INSERT COMMENTS WONT SAVE
    By AMBAZ in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-14-2005, 12:00 AM
  7. [SOLVED] scrolling wont stop
    By anonymous in forum Excel General
    Replies: 1
    Last Post: 02-18-2005, 10:06 AM

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