+ Reply to Thread
Results 1 to 5 of 5

Require a VBA Code macro to summarize the common material codes and amount from two sheets

  1. #1
    Forum Contributor
    Join Date
    02-19-2010
    Location
    INDIA
    MS-Off Ver
    MSoffice-2019
    Posts
    339

    Require a VBA Code macro to summarize the common material codes and amount from two sheets

    I have an excel file having 3 sheets.One is "Summary",2nd is "Current" and 3rd is "Previous".

    I want to VBA codes to help me for best result,subject to following criteria:-

    1-Lookup the common Material (Column C ) and Amount (Column G ) from Current and Previous sheets.
    2-Lookup the common plant ( Column B) from Current and Previous Sheet after verify the above condition.

    For more clarification,please refer the attach file
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Require a VBA Code macro to summarize the common material codes and amount from two sh

    Hi.. try this..

    I had to zip the attachment as adding my code pushed it over 1mb.


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

  3. #3
    Forum Contributor
    Join Date
    02-19-2010
    Location
    INDIA
    MS-Off Ver
    MSoffice-2019
    Posts
    339

    Re: Require a VBA Code macro to summarize the common material codes and amount from two sh

    VBA Code is working fine.Thanks for the excellent result.

    One more thing,can you alter the codes without click the mouse.

    Is it possible to run the macro through ALT+F8 then click on run?
    Last edited by PRADEEPB270; 10-18-2013 at 12:53 PM.

  4. #4
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Require a VBA Code macro to summarize the common material codes and amount from two sh

    yeap.. add this into a Worksheet Module...

    Please Login or Register  to view this content.
    And then do Alt + F8 and run "test"

  5. #5
    Forum Contributor
    Join Date
    02-19-2010
    Location
    INDIA
    MS-Off Ver
    MSoffice-2019
    Posts
    339

    Re: Require a VBA Code macro to summarize the common material codes and amount from two sh

    Thank you for your provide the awesome result.Glad.

    Regards

+ 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. [SOLVED] Sub Summarize macro code help needed.....
    By ThaGonz in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-22-2012, 07:30 PM
  2. Repeat Material Codes
    By whitehead6682 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-12-2011, 05:59 AM
  3. VBA code require to separate data in different sheets
    By irfan.rangrej in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-27-2010, 12:19 AM
  4. [SOLVED] Conditional formatting - Find common material
    By kuansheng in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-31-2006, 02:40 PM
  5. Replies: 1
    Last Post: 07-11-2005, 03:05 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