+ Reply to Thread
Results 1 to 3 of 3

Need VBA Code to copy paste rows from worksheet to another

  1. #1
    Registered User
    Join Date
    02-08-2012
    Location
    Stamford, Connecticut
    MS-Off Ver
    Excel 2003
    Posts
    9

    Need VBA Code to copy paste rows from worksheet to another

    Hi Guys,

    I need some help creating a Macro.

    I'm trying to copy and paste rows of data that contain my criteria column A but not if column B is blank.

    I want to be able to enter a team code in cell B2 in the "Summary" tab and have the Macro pull all the non-blank rows of data and paste into the "Summary" tab.

    If that doesn't make sense, please let me know.

    Here is my code:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by amasulli; 05-11-2012 at 01:53 PM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Need VBA Code to copy paste rows from worksheet to another

    Why are you performing the actions on the worksheet activate event? How about having the copy paste triggered by a button instead?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    02-08-2012
    Location
    Stamford, Connecticut
    MS-Off Ver
    Excel 2003
    Posts
    9

    Unhappy Re: Need VBA Code to copy paste rows from worksheet to another

    My code isn't working properly...I don't know what I'm doing wrong. Sure I can add a button for the copy/paste but I'd like to see how this Macro would work set up my way.
    Last edited by amasulli; 05-11-2012 at 02:59 PM.

+ 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