+ Reply to Thread
Results 1 to 12 of 12

Copy data from one worksheet to another worksheet by macro/vba

  1. #1
    Registered User
    Join Date
    10-20-2014
    Location
    Gurgaon
    MS-Off Ver
    2007
    Posts
    10

    Copy data from one worksheet to another worksheet by macro/vba

    Hi,

    I have a problem hope anyone can help me. Actually, I have an excel sheet in which first worksheet contains 113 columns. On a daily basis, we need to fill some data on the second worksheet. So what I want is that data from worksheet first automatically copied to second worksheet basis on a particular criteria. For example, if I enter the person's name on the second worksheet say in cell D1 the macro should look for that name in first worksheet and then copied the data of say A1 to K1 to same cell range of second worksheet. Same will repeat for second row and so on.

    Crosspost:- http://www.mrexcel.com/forum/excel-q...lications.html
    Last edited by punnu07; 04-21-2015 at 09:21 AM.

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

    Re: Copy data from one worksheet to another worksheet by macro/vba

    then copied the data of say A1 to K1 to same cell range of second worksheet.
    Please clarify this statement. If you copy this data to A1:K1 in worksheet 2 then you will overwrite the information in D1 that you have entered. Is that what you want? Or something else?
    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 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Copy data from one worksheet to another worksheet by macro/vba

    crosspost: http://www.mrexcel.com/forum/excel-q...lications.html

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  4. #4
    Registered User
    Join Date
    10-20-2014
    Location
    Gurgaon
    MS-Off Ver
    2007
    Posts
    10

    Re: Copy data from one worksheet to another worksheet by macro/vba

    Data of cell D1 in both worksheet will be same. for example, data in worksheet 1 is company name, company, entity, address, email, person name and same format/data is given in second worksheet. So eventually if we copy the data from worksheet 1 to worksheet 2 value of cell D1 will remain same.

  5. #5
    Registered User
    Join Date
    10-20-2014
    Location
    Gurgaon
    MS-Off Ver
    2007
    Posts
    10

    Re: Copy data from one worksheet to another worksheet by macro/vba

    Yes this is what I want because data in both worksheet are in same format means in both worksheet name is in D1 cell.

  6. #6
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Copy data from one worksheet to another worksheet by macro/vba

    A message to forum cross posters.

    Please read this:
    http://www.excelguru.ca/node/7
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  7. #7
    Registered User
    Join Date
    10-20-2014
    Location
    Gurgaon
    MS-Off Ver
    2007
    Posts
    10

    Re: Copy data from one worksheet to another worksheet by macro/vba

    Quote Originally Posted by stanleydgromjr View Post
    A message to forum cross posters.

    Please read this:
    http://www.excelguru.ca/node/7
    Hi Stan link given above is not working. So I am not able to look at the information it contains.

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

    Re: Copy data from one worksheet to another worksheet by macro/vba

    See my post #3. It contains the same link that Stan asked you to look at.

  9. #9
    Registered User
    Join Date
    10-20-2014
    Location
    Gurgaon
    MS-Off Ver
    2007
    Posts
    10

    Re: Copy data from one worksheet to another worksheet by macro/vba

    Hi Alan,

    Am sorry I wasn't aware of the fact that I can't do the cross posting. Now I was trying to delete those posts, but looks like I can't delete those my own. So I have reported those posts so that moderator of these forums can delete them. The only reason why I posted the same post on different forums because I needed the solution of this problem urgently. Hope you can understand the situation till now no one has replied yet.

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

    Re: Copy data from one worksheet to another worksheet by macro/vba

    You are missing the point. You don't need to delete them. You need to be aware that you need to identify them and reference the crossposting. Read the link in the posting so that you are clear on the point and understand what happens when you post to multiple sites without referencing them. If you cannot get to the link, then look at this one.

    http://www.excelfox.com/forum/f25/me...1172/#post5326

  11. #11
    Registered User
    Join Date
    10-20-2014
    Location
    Gurgaon
    MS-Off Ver
    2007
    Posts
    10

    Re: Copy data from one worksheet to another worksheet by macro/vba

    Quote Originally Posted by alansidman View Post
    You are missing the point. You don't need to delete them. You need to be aware that you need to identify them and reference the crossposting. Read the link in the posting so that you are clear on the point and understand what happens when you post to multiple sites without referencing them. If you cannot get to the link, then look at this one.

    http://www.excelfox.com/forum/f25/me...1172/#post5326
    Thanks Alan. Now I got the point.

  12. #12
    Registered User
    Join Date
    10-20-2014
    Location
    Gurgaon
    MS-Off Ver
    2007
    Posts
    10

    Re: Copy data from one worksheet to another worksheet by macro/vba

    BUMP

    Have Anyone got the chance to review my problem?

+ 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. Replies: 3
    Last Post: 05-26-2014, 02:21 AM
  2. [SOLVED] Macro/VBA code to Copy data from primary worksheet to a worksheet opened by macro
    By MHamid in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-30-2013, 11:10 AM
  3. Replies: 1
    Last Post: 08-29-2012, 07:11 PM
  4. [SOLVED] Macro to copy cells from one worksheet to another copies worksheet data as image instead??
    By michaeljoeyeager in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-13-2012, 11:26 AM
  5. Macro to copy worksheet data to another worksheet based on criteria
    By excelvb in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-07-2011, 04:11 AM

Tags for this Thread

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