+ Reply to Thread
Results 1 to 7 of 7

Data to be copied from one sheet to another sheet by Find option

  1. #1
    Registered User
    Join Date
    06-14-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    26

    Question Data to be copied from one sheet to another sheet by Find option

    Test File.xlsm

    My requirement is to copy the data from Sheet1 and to be pasted in Sheet2 based on below Scenarios:

    1. Records to be replaced based on 'PC' field
    2. If same 'PC' is not available then, new record to be created below the existing PCs of Sheet2 tab.

    I'm new this macro scripting, so please try to provide detailed scripting or attachment.

    Regards,

    Mohan

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data to be copied from one sheet to another sheet by Find option

    Like so:

    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 06-14-2013 at 09:11 AM. Reason: Correct number of cells to copy
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    06-14-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Data to be copied from one sheet to another sheet by Find option

    Thank you so much.

    A small modification pls...

    Entire rows data is getting copied and pasted there. Can we put limit from 'A' to 'E' colomn only to copy ?




    Regards,
    Mohan.Y

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data to be copied from one sheet to another sheet by Find option

    Entire rows? Where do you see entire rows? I do see it copying one cell too many, I've corrected that above in the original code, but it's not entire rows.

  5. #5
    Registered User
    Join Date
    06-14-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Data to be copied from one sheet to another sheet by Find option

    Yes. You're correct.

    Now it is finding only with Numeric data. Can you pls provide scripit to find with Text data aswell..

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Data to be copied from one sheet to another sheet by Find option

    Please Login or Register  to view this content.
    1 = Numbers only in the range
    2 = Text only in the range
    3 = Numbers and Text in the range

  7. #7
    Registered User
    Join Date
    06-14-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Data to be copied from one sheet to another sheet by Find option

    Cool... All the doubts clarified.
    Thanz...

+ 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