+ Reply to Thread
Results 1 to 3 of 3

Worksheet Change when multiple rows of Data are pasted at once

  1. #1
    Registered User
    Join Date
    03-10-2010
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    63

    Worksheet Change when multiple rows of Data are pasted at once

    Good Day, I've got a piece of code that executes whenever any cell in column "F" changes. Basically what it does is it watches for any entry in column F and then it copies a bunch of formulas down from Row 1 into the target row and then updates a couple of pivot tables. I use it to keep formulas out of the document unless they are required for that line. Its a complex document, and I know the code probably isn't the most efficient way it could be done.

    My concern is when a chunk of data is pasted from another document, the code only executes for the first row that changes instead of for each row.

    Is it possible to have the code execute for each of the rows that was changed when the data was pasted? Are there any more efficient ways to code this so that it will run faster? This document is sometimes in excess of 8000 lines, at which point this code becomes very slow.

    Any help would be appreciated.




    Please Login or Register  to view this content.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Worksheet Change when multiple rows of Data are pasted at once

    Maybe:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    03-10-2010
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    63

    Re: Worksheet Change when multiple rows of Data are pasted at once

    Thats perfect.

    Thanks for the help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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