This document provides detailed instructions for setting up and using the Manufacturing Workflow Scheduler. This Excel-based solution automates the scheduling of complex manufacturing workflows with divergent and convergent steps.
- Open Microsoft Excel
- Create a new workbook
- Save it as "Manufacturing_Workflow_Scheduler.xlsm" (be sure to select Excel Macro-Enabled Workbook)
- Press Alt+F11 to open the VBA editor
- Right-click on the project in the Project Explorer
- Select Import File
- Import each of the following files:
- MainModule.bas
- UserFormModule.bas
- UtilityModule.bas
The following worksheets will be automatically created when the workbook opens:
- Dashboard
- ImportedData
- WorkflowSetup
- Parameters
- Schedule
- Reports
If you need to create them manually:
- Right-click on any worksheet tab
- Select Insert
- Choose Worksheet
- Rename to match the required sheet names
- Save and close the workbook
- Reopen the workbook
- If prompted, click "Enable Macros"
- The workbook will automatically create the required sheets and set up the dashboard
- Click the "Import Data from CSV" button on the Dashboard
- Select your ERP data export file (it should match the format of the provided sample_data.csv)
- The data will be imported into the ImportedData sheet
You can set up the workflow in two ways:
- Click the "Import Workflow from CSV" button on the Dashboard
- Select your workflow definition file (it should match the format of the provided workflow_template.csv)
- Go to the WorkflowSetup sheet
- Enter your workflow steps with the following columns:
- StepID: Unique identifier for each step
- StepName: Descriptive name for the step
- Department: Department responsible for the step
- Duration: Time required to complete the step (in days)
- Prerequisites: Comma-separated list of StepIDs that must be completed before this step
- ResourceRequired: Resource needed for this step
- SetupTime: Additional setup time required before the step (in days)
- Go to the Parameters sheet
- Adjust the following settings:
- Start Date: The default start date for scheduling
- Working Hours Per Day: Used to convert durations to calendar time
- Use Calendar Days: Set to "Yes" to use calendar days, "No" to use working days (excluding weekends)
- Max Resource Utilization %: Maximum allowed resource utilization percentage
- Click the "Generate Schedule" button on the Dashboard
- The system will calculate optimal start and end dates for each step based on:
- Work order priority
- Step dependencies (prerequisites)
- Resource availability
- Working days/hours configuration
- The completed schedule will appear in the Schedule sheet
- Go to the Schedule sheet to see the complete detailed schedule
- Use the Reports sheet to view summary information and analytics
- To generate a resource utilization chart, run the UpdateResourceChart macro
- Click the "Export Schedule to CSV" button on the Dashboard
- Choose a location to save the exported schedule
- The schedule will be exported in CSV format for use in other systems
- Edit the WorkflowSetup sheet to add, remove, or modify steps
- Change prerequisites to alter the workflow relationships
- Adjust durations and resource requirements as needed
For advanced customization of the scheduling algorithm, you can modify:
- The GenerateSchedule procedure in MainModule
- The BuildWorkOrderSchedule function in MainModule
- The CalculateCriticalPath function in UtilityModule
- Create a new macro in UserFormModule or MainModule
- Use the existing data in the Schedule sheet to generate custom analytics
- Add a button to the Dashboard that calls your new macro
- Macros Disabled: Ensure macros are enabled in Excel security settings
- Missing References: If you get "Missing Reference" errors, you may need to add references to:
- Microsoft Scripting Runtime
- Microsoft Forms 2.0 Object Library
- Import Errors: Ensure CSV files match the expected format (see sample files)
- Scheduling Errors: Check for circular dependencies in your workflow definition
The system logs errors to an ErrorLog.txt file in the same directory as the workbook. Check this file if you encounter issues.
The solution is designed to be extensible. Consider these potential enhancements:
- Integration with project management tools
- Gantt chart visualization
- Resource leveling algorithms
- Real-time progress tracking
For questions or support with implementation, refer to the README file or contact the developer.