This project automates the processing and reporting of inventory data using VBA macros in Microsoft Excel. The workflow is designed to clean, filter, and transfer data between workbooks, providing an efficient solution for managing inventory discrepancies and ensuring accurate reporting.
- Deletes rows based on specific criteria (e.g., warehouse codes or date ranges).
- Removes unnecessary columns for a streamlined dataset.
- Dynamically adjusts worksheet names and structures.
- Filters data based on inventory aging policies (e.g., records younger than 3 days since the start of the shift).
- Transfers filtered data between source and destination workbooks.
- Avoids overwriting existing headers in the destination workbook.
- Combines all macros into a single execution workflow, ensuring sequential processing.
- Microsoft Excel (with support for VBA macros enabled).
- Familiarity with enabling macros in Excel (Developer tab must be enabled).
- Source workbook naming convention starts with "Null Location LPNs" or similar variations.
- Open Excel.
- Navigate to File > Options > Trust Center > Trust Center Settings > Macro Settings.
- Enable macros and allow VBA access.
- Open the Visual Basic for Applications editor (Alt + F11).
- Import the provided VBA scripts into the desired workbook.
- Save the workbook as a .xlsm file to preserve macros.
- Execution Instructions
- Prepares the dataset by performing initial cleanup and transformations.
- Filters and deletes data based on warehouse codes and inventory aging policies.
- Removes specific columns and renames the worksheet.
- Transfers data from the source workbook (My Null Location LPNs) to the destination workbook (Sandbox), starting from row 4.
- Executes all stages sequentially, ensuring the workflow completes step by step.
- Ensure the source workbook is open before running the macros.
- Verify the naming convention matches the code ("Null Location LPNs").
- Double-check the date and time filter logic in NullSummaryReport_Stage2.
- Modify the criteria as per inventory policies.
- Ensure macros are enabled and saved in a macro-enabled workbook (.xlsm).
- Verify worksheet names match those referenced in the macros.