+ Reply to Thread
Results 1 to 6 of 6

Report macro

  1. #1
    Registered User
    Join Date
    07-07-2010
    Location
    south africa
    MS-Off Ver
    Excel 2007
    Posts
    34

    Report macro

    Hi,

    I need to write a macro for a report where I have about 500 material numbers and each have about 10 batch numbers. I need to set the macro to tie up the forecast usage against stock on hand. When I do it manually it takes me days to do can any1 please assist me?
    Last edited by nightcrawler-jay; 07-19-2010 at 03:26 AM.
    Keep life simple

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Report macro

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    07-07-2010
    Location
    south africa
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Report macro

    Hi Roy.

    Thanks for that but currently I am doing it alone. Will I need to run a dummy workbook for each material?

    What I am trying to get is the SLOB stock ( slow moving obselette stock ) for each item. This means that when I run a report from SAP then it gives all materials and all batches. I need to tie the Forecast for each material up at a batch level. The only way that I can do that is if I do Material for material. How would or could I write a macro for that? I would have attached a example but the material is very sensitive and I cant share it with everyone on the forum. Is there a way I could send you the info other than on the forum?

  4. #4
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Report macro

    Hi nightcrawler-jay;

    Your description of your problem doesn't help anyone figure out how to solve it.

    Delete all sensitive data from a copy of the file (making it a dummy file). Put some phony data in it's place so we can see how it's formatted, and how you want the finished result to look. Then we can help.
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

  5. #5
    Registered User
    Join Date
    07-07-2010
    Location
    south africa
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Report macro

    Good morning

    The reports ran is for all items and I want to write a macro to split each item into a separate sheet. I have 935 line items which I need to split. Reason for me needing to split the items is that some items have little or no forecast and other have more forecast than total stock. The idea behind it is to get the forecast to consume the oldest stock first and after the forecast has been removed from stock on hand I can then determine the SLOB ( slow moving obsolete stock ) that I will be left with.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Report macro

    Hi nightcrawler-jay;

    You didn't include a sheet that showed an example of how you wanted the results to look.

    Here's how I would handle it based on what you have said so far: I would write a macro that created a sheet named "9080007" and copy all the data for 9080007 from Sheet1 onto that sheet.

    If that's all you want, an easier way is just use "autofilter".
    In the menus: DATA>FILTER>AUTOFILTER. That will make every column heading like a listbox. You just go to "Material Number" heading and select the material number you want, and it is automatically filtered. Then you can print the sheet as is. When you're done printing, you can turn off autofilter the same way DATA>FILTER>AUTOFILTER

    If you want the macro to figure out what batches to include in a report, you will have to tell us how to figure it out. Describe it like you would describe it to a new employee that doesn't know anything at all about your business. Remember I'm a new employee, and I have no idea what SLOB or SAP or Material Group are, so explain it to me that way, and I can write a macro to do it for you.

+ 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