+ Reply to Thread
Results 1 to 5 of 5

Insert X Rows per Value

  1. #1
    Registered User
    Join Date
    09-26-2019
    Location
    Germany
    MS-Off Ver
    Office 2017
    Posts
    7

    Insert X Rows per Value

    Hello everyone,

    I`m search for a way, how to insert for example after A2 a number rows after it. The number how often he had to insert the row is set on a value. I already built a method, but I dont know why, it has problems with inserts over 3-4.

    Here is the code #1:

    Please Login or Register  to view this content.
    Code #2:
    Please Login or Register  to view this content.
    Has someone a better solution or a fix of my code above?

  2. #2
    Valued Forum Contributor
    Join Date
    06-27-2010
    Location
    sYRIA
    MS-Off Ver
    Excel 2013
    Posts
    669

    Re: Insert X Rows per Value

    HI
    What about
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    06-27-2010
    Location
    sYRIA
    MS-Off Ver
    Excel 2013
    Posts
    669

    Re: Insert X Rows per Value

    Or may be
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    09-26-2019
    Location
    Germany
    MS-Off Ver
    Office 2017
    Posts
    7

    Re: Insert X Rows per Value

    A question: What does the attributes (x) in "Cells(x, x)" stands for?

  5. #5
    Valued Forum Contributor
    Join Date
    06-27-2010
    Location
    sYRIA
    MS-Off Ver
    Excel 2013
    Posts
    669

    Re: Insert X Rows per Value

    HI
    Please Login or Register  to view this content.
    Cells(1,1)= Range("A1")
    Cells(2,1)=Range("A2")

    cells(1,2)=range("B1")
    Last edited by mohadin; 10-07-2019 at 07:14 AM.

+ 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. Replies: 2
    Last Post: 10-28-2017, 10:51 AM
  2. Replies: 5
    Last Post: 08-30-2017, 01:52 PM
  3. Replies: 7
    Last Post: 10-14-2016, 05:33 PM
  4. Replies: 2
    Last Post: 09-11-2016, 12:40 PM
  5. Replies: 2
    Last Post: 09-11-2016, 12:39 PM
  6. Replies: 1
    Last Post: 09-11-2016, 12:39 PM
  7. [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

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