Marui_Work_VBA/README.md
2026-04-18 02:00:09 +08:00

44 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Marui_Work_VBA
全機型_日報表.xlsm 的 VBA 原始碼存檔
## 來源文件
- 原始檔案:`全機型_日報表.xlsm`(位於 Marui_Work 倉庫)
- 提取日期2026-04-07
- 檔案大小1.6MB(含二進制 VBA 模組)
## 模組架構
### 主流程
| 巨集 | 說明 |
|------|------|
| `Module5.A()` | 呼叫 B() → Q(),全機型主流程 |
| `Module6.B()` | 讀取 FCST + BOM展開料號至 Output 表 |
| `Module3.Q()` | 對 Output 創建透視表 WeeklySummaryPivot |
### LG 專用版本
| 巨集 | 說明 |
|------|------|
| `Module29.A_LG()` | LG 主流程 |
| `Module27.B_LG()` | 處理 LG 預測數據 |
| `Module28.Q_LG()` | 創建 WeeklySummaryPivot_LG |
### 數據轉換
| 巨集 | 說明 |
|------|------|
| `Module32.JQ_ConvertHorizontalWeeklyToMonthly()` | 橫向周數據 → 縱向月數據 |
| `Module24.LG_WEEK()` | LG 周數據透視表 |
| `Module31.QF()` | 短缺數據qs表轉橫向表格 |
### 工具函數
| 函數 | 說明 |
|------|------|
| `ra()` | 正則提取料號6-25位大寫數字 |
| `NT()` | 列號轉字母 |
| `MKey()` | BOM 緩衝區匹配至 0000 表 |
| `MKey_LG()` | BOM 緩衝區匹配至 LG_Buffer 表 |
| `OptimizeVBA()` | 效能優化開關 |
| `WorksheetExists()` | 工作表存在性檢查 |
-