Rename Z1_validateDetailData to Z1_validate, Z1_validateDetailDataButton to Z1_validateButton
This commit is contained in:
@@ -105,7 +105,7 @@ Sub Z1_ExportMasterDetailData()
|
|||||||
MsgBox "CSV export completed. Total data rows: " & rowCount, vbInformation
|
MsgBox "CSV export completed. Total data rows: " & rowCount, vbInformation
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Sub Z1_validateDetailData(ByVal ws As Worksheet, ByVal rowNum As Long)
|
Sub Z1_validate(ByVal ws As Worksheet, ByVal rowNum As Long)
|
||||||
Dim cValue As String
|
Dim cValue As String
|
||||||
cValue = Trim(ws.Cells(rowNum, 3).Value)
|
cValue = Trim(ws.Cells(rowNum, 3).Value)
|
||||||
|
|
||||||
@@ -188,7 +188,7 @@ Sub Z1_validateDetailData(ByVal ws As Worksheet, ByVal rowNum As Long)
|
|||||||
ws.Cells(rowNum, 2).ClearContents
|
ws.Cells(rowNum, 2).ClearContents
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Sub Z1_validateDetailDataButton()
|
Sub Z1_validateButton()
|
||||||
Dim ws As Worksheet
|
Dim ws As Worksheet
|
||||||
Dim lastRow As Long
|
Dim lastRow As Long
|
||||||
Dim r As Long
|
Dim r As Long
|
||||||
@@ -204,7 +204,7 @@ Sub Z1_validateDetailDataButton()
|
|||||||
|
|
||||||
errorCount = 0
|
errorCount = 0
|
||||||
For r = 7 To lastRow
|
For r = 7 To lastRow
|
||||||
Call Z1_validateDetailData(ws, r)
|
Call Z1_validate(ws, r)
|
||||||
If Trim(ws.Cells(r, 2).Value) <> "" Then
|
If Trim(ws.Cells(r, 2).Value) <> "" Then
|
||||||
errorCount = errorCount + 1
|
errorCount = errorCount + 1
|
||||||
End If
|
End If
|
||||||
|
|||||||
BIN
~$通勤手当テンプレート_案.xlsm
Normal file
BIN
~$通勤手当テンプレート_案.xlsm
Normal file
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user