+ Reply to Thread
Results 1 to 2 of 2

VBA to copy and paste dynamically from one worksheet to another

  1. #1
    Registered User
    Join Date
    01-26-2015
    Location
    Colorado
    MS-Off Ver
    2010
    Posts
    2

    VBA to copy and paste dynamically from one worksheet to another

    I am building an excel database to keep track of our students' progress in our Eye Level Learning Center. We have a worksheet (Lesson Plan) that is filled in from a student worksheet named by the student name. In the Lesson Plan the information on the first page is pulled out of the student's record worksheet dynamically by the student name in B1 and the lesson number in A4.
    What I need to do is copy and paste the information on page 2 of the Lesson Plan into specific cells in the student worksheet in a row of cells determined by the lesson number. I need a macro that will do this. I have tried to build it by recording the macro, but it needs to be dynamic and my knowledge of VBA is limited.

    I have a temporary file with those two worksheets and the cells in question highlighted.

    Thanks for any help you can give me.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-26-2015
    Location
    Colorado
    MS-Off Ver
    2010
    Posts
    2

    Re: VBA to copy and paste dynamically from one worksheet to another

    Sorry. I need to give you more information. The cells from the second page, Lesson Plan, are highlighted; D37, G37, D40-D42, D45-G45, and D46. These need to be copied and pasted into page 1, New Student (The name of sheet will be the student name found in B1 of the Lesson Plan), in the array, AP4:AY177 in the row where the lesson number in col AP matches the current lesson in A4 of Lesson Plan. Then the data in the cells Lesson Plan, D40-D42, D45-G45, and D46, will be cleared and D37, G37 will be reset to "No".
    I need a macro that will do this dynamically. HELP.

+ 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. Dynamically apply filter and copy data and paste in another file
    By iamronakjain in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-11-2014, 09:25 AM
  2. VBA to create new Workbook and copy worksheet into it dynamically
    By rob read in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2013, 11:55 AM
  3. [SOLVED] Copy and paste cells dynamically to a range in a series of named Worksheets.
    By skyping in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-27-2012, 04:22 AM
  4. Replies: 1
    Last Post: 11-05-2011, 10:45 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