更新 vba_code_kukan_detail_master.txt

This commit is contained in:
2026-04-13 03:17:58 +00:00
parent 0162cc677e
commit f3465cdcea

View File

@@ -232,13 +232,14 @@ Sub FillFromKukanMaster(ByVal ws As Worksheet, ByVal rowNum As Long, Optional By
On Error Resume Next
Set wsKukan = ThisWorkbook.Worksheets("区間メンテナンス")
MsgBox "1."
On Error GoTo 0
If wsKukan Is Nothing Then Exit Sub
code = Trim(ws.Cells(rowNum, 3).Value)
If code = "" Then Exit Sub
MsgBox "2."
lastRow = wsKukan.Cells(wsKukan.Rows.Count, 3).End(xlUp).Row
For i = 7 To lastRow