- 6 名前:デフォルトの名無しさん mailto:sage [2020/06/26(金) 20:26:55.66 ID:ZjxMZdyJ0.net]
- >>4すみません、コードはります
Private Sub outputCellInfo(ByVal sTmpPath As String, ByVal sFilePath As String, ByVal sTmpSheetName As String, _ ByVal rFoundCell As Range) Dim OptionButton1 As Boolean If OptionButton1 = True Then With ThisWorkbook.Sheets(STR_GREP_SHEET_NAME) .Cells(lcnt, 2).Value = lcnt - 7 .Cells(lcnt, 3).Value = sFilePath .Cells(lcnt, 4).Value = sTmpPath .Cells(lcnt, 5).Value = sTmpSheetName .Cells(lcnt, 6).Value = convertRange(rFoundCell.Column) & rFoundCell.Row .Cells(lcnt, 7).Value = rFoundCell.Value End With lcnt = lcnt + 1 Else: With ThisWorkbook.Sheets(STR_GREP_SHEET_NAME) .Cells(lcnt, 2).Value = lcnt - 7 .Cells(lcnt, 3).Value = sFilePath .Cells(lcnt, 4).Value = sTmpPath .Cells(lcnt, 5).Value = sTmpSheetName .Cells(lcnt, 6).Value = convertRange(rFoundCell.Column) & rFoundCell.Row .Cells(lcnt, 7).Value = rFoundCell.Offset(0, 1).Value End With lcnt = lcnt + 1 End If End Sub
|

|