+ Reply to Thread
Results 1 to 2 of 2

Macro to copy rows from the data sheet to existing worksheet

  1. #1
    Registered User
    Join Date
    04-23-2014
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    3

    Macro to copy rows from the data sheet to existing worksheet

    Hello Everyone,

    I'm new to Macro writing and have found this forum to be helpful and an invaluable aid.

    I have two worksheets.
    Worksheet 1 is a large data sheet containing columns of data (Date, State, Payment Method, etc, etc)
    Worksheet 2 is the 'Report' worksheet with 2 blank cells (A1 and A2) for users to manually enter the Start and End dates, a drop-list for State names (B1) and a drop-list for Payment Method (C1) - Cash or Credit Card.

    How can I write a macro to:
    1) Filter by Start and End Dates then,
    2) Filter by State name then,
    3) Filter by Cash or Credit Card then,
    4) Copy these filtered records (i.e. whole row/s) onto the 'Report' worksheet starting at Column A, Row 5.
    5) Macro to end with a 'Successful' message.

    Thanking you.

  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: Macro to copy rows from the data sheet to existing worksheet

    Is this solved?

    If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit.
    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]

+ 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. Copy Rows to Existing Worksheet Based upon a Cell Value
    By sclasen24 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-20-2013, 10:21 AM
  2. Replies: 11
    Last Post: 11-04-2013, 04:32 PM
  3. Replies: 3
    Last Post: 10-14-2013, 03:06 PM
  4. Macro to copy row into existing worksheet when data entered
    By Backroads23 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2012, 02:31 AM
  5. Replies: 0
    Last Post: 04-28-2012, 06:06 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