+ Reply to Thread
Results 1 to 15 of 15

Copying data and paste to other sheets with criteria

  1. #1
    Registered User
    Join Date
    12-19-2013
    Location
    Manila
    MS-Off Ver
    Excel 2007
    Posts
    46

    Copying data and paste to other sheets with criteria

    Hi guys! I would like to ask help about my problem in vba. I have workbooks , each workbook contains two sheets, the sheet1 only contains data about employees, his name, department, manager name, etc. and the other sheet which is sheet2 that contains data that I want to copy and paste to other workbook which will serve as my masterlist, in sheet1,sheet2,sheet3... the problem is I want to have a sheets that names after employee's last name and paste data into it, for example. Smith(name of employee) will be equal to Smith(name of the sheet) and the data within the Smith sheet will be the data of Smith..please someone help me about this..I already know the code for opening workbooks with they're corresponding paths.. Please please help, and thnaks in advance

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Copying data and paste to other sheets with criteria

    It would be greate if you provide both sample file
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Registered User
    Join Date
    12-19-2013
    Location
    Manila
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Copying data and paste to other sheets with criteria

    Here's a sample thanks!
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Copying data and paste to other sheets with criteria

    Hi

    try this attached file

    note: put this attached file separately and put all the employees workbook in Path and paste that path in Master sheet and then click on button
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-19-2013
    Location
    Manila
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Copying data and paste to other sheets with criteria

    It works now! Amazing! I'll try to analyze your code! big thanks for the help man!

  6. #6
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Copying data and paste to other sheets with criteria

    Hi Glad i could help you

    1. If the suggestion helps you, then Click * to Add Reputation and give comments
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  7. #7
    Registered User
    Join Date
    12-19-2013
    Location
    Manila
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Copying data and paste to other sheets with criteria

    I just want to ask about this particular line of code .. Workbooks("" & mymacro & "") why include "" in this?

  8. #8
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Copying data and paste to other sheets with criteria

    i define master workbook name in mymacro and that is procedure of VBA to call that workbook

    please mark this thread as SOLVED

  9. #9
    Registered User
    Join Date
    12-19-2013
    Location
    Manila
    MS-Off Ver
    Excel 2007
    Posts
    46

    Talking Re: Copying data and paste to other sheets with criteria

    I Modified to suit my needs.. thanks again pal!
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    12-19-2013
    Location
    Manila
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Copying data and paste to other sheets with criteria

    wait a minute I'll try
    Attached Files Attached Files
    Last edited by rarementality; 02-04-2014 at 06:23 AM. Reason: mistake

  11. #11
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Copying data and paste to other sheets with criteria

    Hi

    yes tell me

  12. #12
    Registered User
    Join Date
    12-19-2013
    Location
    Manila
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Copying data and paste to other sheets with criteria

    Hi Naveed still there? do you mind if I ask you question again?

  13. #13
    Registered User
    Join Date
    12-19-2013
    Location
    Manila
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Copying data and paste to other sheets with criteria

    my reference data
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    12-19-2013
    Location
    Manila
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Copying data and paste to other sheets with criteria

    reference only
    Attached Files Attached Files
    Last edited by rarementality; 02-05-2014 at 10:42 AM. Reason: wrong upload

  15. #15
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Copying data and paste to other sheets with criteria

    what is the password for that attachement

+ 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. Copying data to other sheets by criteria
    By Tuclis in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-12-2013, 05:04 PM
  2. Paste Data from Sheet one to other sheets based on date criteria
    By bremen22 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2013, 05:50 AM
  3. Replies: 0
    Last Post: 11-27-2012, 10:32 AM
  4. Copy and paste data to separate sheets based on mutiple criteria again
    By Ricker090 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-13-2011, 02:23 PM
  5. Copy and paste data to separate sheets based on mutiple criteria
    By Ricker090 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2011, 03:48 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