+ Reply to Thread
Results 1 to 9 of 9

Search, copy and paste to different sheet

  1. #1
    Registered User
    Join Date
    07-27-2014
    Location
    california
    MS-Off Ver
    2007
    Posts
    4

    Search, copy and paste to different sheet

    I am trying to generate a sales and commission report. I need a macro that with search and copy to a different sheet. One for daily sales and the other for commissions. I haven't been able to find a macro that works yet. Any ideas would be very appreciated.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,870

    Re: Search, copy and paste to different sheet

    Here is code for the daily. Will post commission soon.

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,870

    Re: Search, copy and paste to different sheet

    Give this a try for the commissions

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    07-27-2014
    Location
    california
    MS-Off Ver
    2007
    Posts
    4

    Re: Search, copy and paste to different sheet

    I applied the macro. I works but is misaligned in the daily tabs and commission tab. Much better than anything I've come up with. Any idea how to line the results in row 7 of the daily and row 10 of the commission? Thanks for the help..

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,870

    Re: Search, copy and paste to different sheet

    I don't understand what you mean. Perhaps if you manually filled in the two sheets with the appropriate data, I can replicate it with VBA, but without a visual, I really can't take this any further.

  6. #6
    Registered User
    Join Date
    07-27-2014
    Location
    california
    MS-Off Ver
    2007
    Posts
    4

    Re: Search, copy and paste to different sheet

    Won't let me attach the file to show you.

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,870

    Re: Search, copy and paste to different sheet

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  8. #8
    Registered User
    Join Date
    07-27-2014
    Location
    california
    MS-Off Ver
    2007
    Posts
    4

    Re: Search, copy and paste to different sheet

    Test Book X 2 is ideally how I am trying to get it. Basically a single input sheet that will sort for a daily report and can also calculate individual performance report. Thanks
    Attached Files Attached Files

  9. #9
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,870

    Re: Search, copy and paste to different sheet

    Change this section and all ElseIf sections
    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.
    Will look at the salesman's report later, but if you understand what is happening here, then you should be able to adjust that one also. It is just a matter of changing up the ranges. Since in your original request, you did not identify where you wanted each item to go, I made a guess. In the future, please be specific in your request.

+ 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. VBA code to search from different sheet > Copy the row > Paste on different sheet.
    By qpywsqp in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-26-2013, 11:13 AM
  2. Search row with criteria in all sheet, copy rows and paste in new created sheet
    By dekueb in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-24-2013, 01:42 PM
  3. Search, Copy & Paste into new sheet.
    By JnrParki in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2011, 09:38 AM
  4. Replies: 2
    Last Post: 10-15-2009, 10:12 AM
  5. Macro to search the sheet name and copy and paste the data from a major sheet
    By salma2009 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-04-2009, 02:11 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