+ Reply to Thread
Results 1 to 5 of 5

Macro to Automate Report by Case Number and Product Type (Macro Recorder Fail)

  1. #1
    Registered User
    Join Date
    06-11-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    12

    Macro to Automate Report by Case Number and Product Type (Macro Recorder Fail)

    Hello I have a question very similar to the case located in forum.


    http://www.excelforum.com/excel-prog...68#post2820568

    Original Raw Data Set Consists of 3 different case numbers followed by a unique number; each case number also has an associated product type
    Case Numbers are ZW, ZR and ZC // Product types are 114455, 114466, 995566, 995577

    I am looking for macro to automate sorting of raw data, insert rows, calculate sum by both case number and product type.

    I have created macro to perform this function (utilizing the macro recorder) however the macro is not static and will only work on the raw data set that it was coded with. Since there are constant changes in the original data set, I need the macro to recognize the difference between a ZW and ZR (rather than hard coded at line 107)

    I have created and attached a sample work book with the original data set and the desired resultsRawDatatoReport.xlsx

    Any answers out there?

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Macro to Automate Report by Case Number and Product Type (Macro Recorder Fail)

    Hi

    Here's one

    Please Login or Register  to view this content.
    rylo

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

    Re: Macro to Automate Report by Case Number and Product Type (Macro Recorder Fail)

    try
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-11-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Macro to Automate Report by Case Number and Product Type (Macro Recorder Fail)

    Wow thanks these both work beautifully.

  5. #5
    Registered User
    Join Date
    06-11-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Macro to Automate Report by Case Number and Product Type (Macro Recorder Fail)

    you are my hero

+ 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