+ Reply to Thread
Results 1 to 2 of 2

Adding 'n' number of rows with pasted formulas through VBA button

  1. #1
    Registered User
    Join Date
    10-04-2023
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    1

    Adding 'n' number of rows with pasted formulas through VBA button

    Hi,

    I am working on a tool for analysis and created a VBA code for Adding 'n' rows in the sheet with provision to copy paste formula on all added rows from the last row of the original table. This takes a lot of time and puts the application into processing for a long period. Is there a way to optimize the below code for faster result: -

    Please Login or Register  to view this content.
    Last edited by jeffreybrown; 10-04-2023 at 12:25 PM. Reason: Please use code tags when posting code!

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: Adding 'n' number of rows with pasted formulas through VBA button

    Don't loop. For example

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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: 5
    Last Post: 07-25-2020, 01:50 AM
  2. adding / remove rows with a command button
    By bruno2580 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-22-2020, 09:29 PM
  3. Replies: 13
    Last Post: 07-16-2016, 10:53 PM
  4. Limit number of rows pasted with pastespecial
    By bosco2 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-14-2011, 11:37 AM
  5. Insert rows and formulas above Button
    By alexandruc in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 03-17-2010, 02:52 AM
  6. Adding Rows to Formulas
    By teq in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-29-2007, 03:02 PM
  7. Adding rows in between formulas
    By Mary in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-21-2006, 12:55 PM

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