+ Reply to Thread
Results 1 to 11 of 11

Copy Range from One sheet to Another , depending upon record match.....Not working...

  1. #1
    Registered User
    Join Date
    07-19-2019
    Location
    USA
    MS-Off Ver
    office 365
    Posts
    29

    Copy Range from One sheet to Another , depending upon record match.....Not working...

    I have 2 sheets.
    Sheet 1 = 'My Data'
    Sheet 2 = 'ReplaceIt'
    Column named 'TOPIC2' is common in both sheets.

    I want to look at Sheet 2 , Topic 2 , comeback to Sheet 1 , find the corresponding data from Sheet 2 in Sheet 1 and paste Topic 5 data from Sheet 2 into Sheet 1. Refer attached excel please.

    If someone can provide this macro, i will really appreciate it.
    Attached Files Attached Files
    Last edited by enggrahul78; 08-04-2019 at 04:02 PM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,740

    Re: Struggling with a Simple Macro......just not able to do it...

    How about
    Please Login or Register  to view this content.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Struggling with a Simple Macro......just not able to do it...

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    07-19-2019
    Location
    USA
    MS-Off Ver
    office 365
    Posts
    29

    Re: Struggling with a Simple Macro......just not able to do it...

    Quote Originally Posted by FDibbins View Post
    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    I will take care of this in the future. However for now, solution provided by Fluff13 worked fine for me. Thanks a lot Fluff13 and sorry for the inconvenience FDibbins...

  5. #5
    Registered User
    Join Date
    07-19-2019
    Location
    USA
    MS-Off Ver
    office 365
    Posts
    29

    Re: Struggling with a Simple Macro......just not able to do it...

    Quote Originally Posted by Fluff13 View Post
    How about
    Please Login or Register  to view this content.
    Hi Fluff13,

    I am running into an issue. If I run this macro multiple times, it clears the previous values. I modified the code, but not working. My idea was that do not replace the cell if there is some value already populated. But the code giving debug error.......

    Please Login or Register  to view this content.
    Last edited by enggrahul78; 08-04-2019 at 04:03 PM.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,740

    Re: Struggling with a Simple Macro......just not able to do it...

    I cannot offer any further help, until you have complied with the moderation request in post#3
    Also you need to edit post#5 to include code tags around the code.

  7. #7
    Registered User
    Join Date
    07-19-2019
    Location
    USA
    MS-Off Ver
    office 365
    Posts
    29

    Re: Struggling with a Simple Macro......just not able to do it...

    Quote Originally Posted by Fluff13 View Post
    I cannot offer any further help, until you have complied with the moderation request in post#3
    Also you need to edit post#5 to include code tags around the code.
    Hi Fluff13,

    I had tried changing the title of the post and also tried changing Post 5 as per your suggestion. Are you OK with it ? If I missed something or done something wrong , please let me know and I will try again............ I am relatively new here and also new to VBA....... I am just trying to learn something new !!!

    Regards,
    Rahul.

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,740

    Re: Copy Range from One sheet to Another , depending upon record match.....Not working...

    Thanks for making the changes.
    Try
    Please Login or Register  to view this content.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Copy Range from One sheet to Another , depending upon record match.....Not working...

    Thanks for the title change

  10. #10
    Registered User
    Join Date
    07-19-2019
    Location
    USA
    MS-Off Ver
    office 365
    Posts
    29
    Thanks for your suggestions and solution....

  11. #11
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,740

    Re: Copy Range from One sheet to Another , depending upon record match.....Not working...

    You're welcome & thanks for the feedback

+ 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. New to VBA, and struggling to create a simple archiving code
    By dha90 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-25-2019, 07:33 AM
  2. [SOLVED] Struggling with what should be a simple nester IF function...
    By neatguy25 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-09-2017, 12:08 AM
  3. Struggling with Cut and Paste macro between sheets
    By liammcbeth in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-11-2016, 05:52 AM
  4. Struggling with Combo-boxes. Simple problems =/ Newbie alert
    By wcngu1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-29-2014, 07:13 PM
  5. Simple Chart request - I am struggling to get this.
    By shashidhargani in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-22-2009, 09:28 AM
  6. Replies: 3
    Last Post: 06-19-2006, 06:10 PM
  7. Struggling with a macro
    By toolpusher in forum Excel General
    Replies: 7
    Last Post: 02-16-2005, 03:20 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