重複データの入力防止/無効な値を調べる:Excel基本講座 |
スポンサードリンク | |
更新:2024/8/2;作成:2006/4/20
重複データの入力防止 | 無効な値を調べる |
Private Sub Worksheet_change(ByVal target As Range) If target.Count <> 1 Then Exit Sub If target.Row > 15 Then Exit Sub If target.Column <> 2 Then Exit Sub If Application.WorksheetFunction.CountIf(Range("B3:B15"), target.Value) > 1 Then MsgBox "入力値は重複しています" target.Value = Clear End If End Sub |
スポンサードリンク
PageViewCounter
Since2006/2/27