更新 vba_code_kukan_detail_master.txt

This commit is contained in:
2026-04-13 03:21:50 +00:00
parent 898933ed19
commit d3abff7421

View File

@@ -39,15 +39,10 @@ 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
MsgBox "5."
If wsKukan Is Nothing Then Exit Sub
MsgBox "4."
code = Trim(ws.Cells(rowNum, 3).Value)
MsgBox "3."
If code = "" Then Exit Sub
MsgBox "2."
lastRow = wsKukan.Cells(wsKukan.Rows.Count, 3).End(xlUp).Row
For i = 7 To lastRow