+ Reply to Thread
Results 1 to 20 of 20

Excel Macro Edit Code Help

  1. #1
    Registered User
    Join Date
    03-17-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    34

    Exclamation Excel Macro Edit Code Help

    Hello!

    Please Login or Register  to view this content.

    What the code above does is that it goes through the ID in Column A - Sheet 3 and then it paste the matching Item number with the ID's in Column B - Sheet 4. See the attached workbook [SampleWorkbook (1).xlsm]


    I would like to apply the same condition on the another workbook, see attached [SWG_2.xlsx]. So for this, the ID is on Column B - Sheet 1, and then the Item number needs to be pasted on Column P - Sheet 2. Please help, thank you
    Attached Files Attached Files
    Last edited by myownworld; 04-07-2013 at 10:16 AM.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Excel Macro Edit Code Help

    maybe
    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    03-17-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    34

    Re: Excel Macro Edit Code Help

    nothing happened

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Excel Macro Edit Code Help

    try
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-17-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    34

    Re: Excel Macro Edit Code Help

    Here's what happened

    Capture.JPG

    I attached the workbook sample if you want to see it.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-17-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    34

    Re: Excel Macro Edit Code Help

    Anyone help please?

  7. #7
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Excel Macro Edit Code Help

    I'm sorry, I think you need help from original code owner
    Otherwise explain better your goal for a new code
    Last edited by patel45; 04-07-2013 at 01:10 PM.

  8. #8
    Registered User
    Join Date
    03-17-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    34

    Re: Excel Macro Edit Code Help

    I would like to apply still the same condition on the new workbook, still the same, go through the ID on Column B - Sheet 1 and then paste the matching Item Number with the ID's in Column P - Sheet 2.

    A new code would be a great help too..

  9. #9
    Registered User
    Join Date
    03-17-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    34

    Re: Excel Macro Edit Code Help

    I tried and edited the code to:

    Please Login or Register  to view this content.
    but the item number on column p - sheet 2 is still not showing
    Attached Files Attached Files
    Last edited by myownworld; 04-07-2013 at 02:11 PM.

  10. #10
    Registered User
    Join Date
    03-17-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    34

    Re: Excel Macro Edit Code Help

    if anyone could help me on this or just go on a new code that would be great help

  11. #11
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Excel Macro Edit Code Help

    Myownworld,
    I have spent over 3 days on the same thread with you. You keep coming with different request every time I came up with a solution. With hind, you would have been better off with a formula so you can easily amended it yourself. You also keep changing your data. I am at loss what are you trying to do. I do think you are using the code as learning purpose, not to find a solution for a particular task. Now, if I look at the attached output, you have ID with 4 digits numbers, and numbers which do not relate to ID no on both sheets. For e.g., you have 64 as output, but you ID nos are only up to 20.
    Based on the attached, this should do, but would not hold my breath as you may came with different data.

    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    03-17-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    34

    Re: Excel Macro Edit Code Help

    it's only repeating the ID and not pasting the values that is on the item number
    Attached Files Attached Files

  13. #13
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Excel Macro Edit Code Help

    You have ID nos and Item on both sheets. Where are the numbers on the output column P came from?

  14. #14
    Registered User
    Join Date
    03-17-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    34

    Re: Excel Macro Edit Code Help

    that was the output when i run the macro with the edited code

  15. #15
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Excel Macro Edit Code Help

    You have sheet called "What it shld look like". You have numbers in column P which I suspect are your desired output. If this is not, you need to explain what do you want to do.

  16. #16
    Registered User
    Join Date
    03-17-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    34

    Re: Excel Macro Edit Code Help

    Initially there are no numbers on Column P, i just left it there so you could see the output - which is not what i was looking for exactly cause what i would like to happen is that it should paste the item numbers that was on Sheet 1 - Column N to Sheet 2 - Column P. I attached it again, i deleted the numbers on column p. The tab "What it shld look like" is showing you how i want the desired output to be.
    Attached Files Attached Files

  17. #17
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Excel Macro Edit Code Help

    Myownworld,
    Sorry!

    No, I do not get it. I hope others would help you.

  18. #18
    Registered User
    Join Date
    03-17-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    34

    Re: Excel Macro Edit Code Help

    But you did it the first time, your code was able to do it before...

  19. #19
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Excel Macro Edit Code Help

    Try
    Please Login or Register  to view this content.
    Attached Files Attached Files

  20. #20
    Registered User
    Join Date
    03-17-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    34

    Re: Excel Macro Edit Code Help

    Yes! It worked, oh my god thank you! :D *virtual hug*

+ 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