+ Reply to Thread
Results 1 to 4 of 4

Storekeeping macro

  1. #1
    Registered User
    Join Date
    08-20-2014
    Location
    Ravenna, Italy
    MS-Off Ver
    2010
    Posts
    51

    Question Storekeeping macro

    Hi guys, i'm writing you from Italy, hoping to find someone with enough wisdom and kindness to help me.

    I know excel basics, so i will do all formatting work (sorting, underlining, etc...) but i really need your help for the main body of this future macro.

    I'm attaching the preliminary revision of the xlsx for your use.
    This is a xls for storekeeping management, this is already hand-filled with my output expectation.

    I have three sheets:
    - store (otput sheet);
    - load (purchasing);
    - offload (sells).

    The purpose of the output sheet (store) is to collect all products and show the live quantity. The macro should recognize the product description and associated quantity and summarize from "load" and "offload" sheets, giving the output of the live quantity in store.
    The macro should BUILD the "store sheet" including all the other infos in the other comlums (i think for the other infos it should be a simple copy/paste, but anyway included in the macro).

    As i told before, the example xslx attached shows the macro expectation.

    I know that several company sells softwares for this purpose but my boss is quite a cheapskate and he asked me to deal with it.

    I think that for u guys, excel experts, this should be easy but i don't have any experience in VBA, i'm only quite capable of reading the codes and little editing.

    I'm always available for further information/clarification, if in case.

    Thank u all in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,943

    Re: Storekeeping macro

    How you would do this depends on whether you are adding data to your tables or createing entirely new workbooks every time.


    In this file, click the button ONCE. It will create data queries and a pivot table that summarizes your inventory levels - all you will need to do it refresh the data as you add new entries to your LOAD and OFFLOAD sheets.

    Or, if you don't add data to existing files, use the file as a template and copy your tables into the template and save it under a new name before running the macro.
    Attached Files Attached Files
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    08-20-2014
    Location
    Ravenna, Italy
    MS-Off Ver
    2010
    Posts
    51

    Re: Storekeeping macro

    Good Morning Bernie,

    thank you for the answer.

    I summarize here my thoughts/questions/conclusions:

    - the MACRO returns a "runtime error 438", so it does not run till the end;
    - I see that u removed the output sheet "STORE", is this because the macro creates a new one every time?;
    - It seems (correct me if I'm wrong) that your macro edits also the sources sheets Load and offload, is it true?.

    Thank you very much

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,943

    Re: Storekeeping macro

    I'm sorry - I renamed the file and broke the code - try this version.

    The macro will create the final sheet that you want - it does change the other sheets but doesn't change any of the data on the sheets: it simply converts the data area into a data table.
    Attached Files Attached Files

+ 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] macro showing error ( macro not found ) while trying to execute macro every 1 minute
    By prabhuduraraj09 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-16-2018, 07:58 PM
  2. [SOLVED] Define variable in macro than calling that macro inside another macro
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2015, 10:58 AM
  3. Using a macro on workbook1 to create a button in wb2 and assigning macro "wb2!macro"
    By penfold1992 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2014, 11:39 AM
  4. [SOLVED] Macro to show Which macro didnt work in a nested macro
    By akhileshgs in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-10-2013, 03:21 AM
  5. Perform macro "on open" specific file- store macro in Personal Macro Workbook?
    By thompssc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-17-2012, 12:38 PM
  6. lookup macro, solver macro, realtime macro
    By xelhelp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-02-2011, 06:14 PM
  7. Cannot find macro error when running a macro from a macro in a diffrent workbook.
    By Acrobatic82 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2010, 09:22 AM

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