ランダムな数値の中から数値を抜き出す 削除
Message#3 2014年12月16日(火)07時30分 From: VBAマスター |
アップ画像のセッティングにて。 Sub Sample() Dim MyVal As Integer, MyFlg As Boolean Dim j As Long, k As Long With ActiveSheet For j = 1 To .Cells(Rows.Count, 1).End(xlUp).Row If Len(Cells(j, 1)) > 1 And IsNumeric(.Cells(j, 1)) = True Then MyVal = Mid(.Cells(j, 1), 1, 1) For k = 2 To Len(.Cells(j, 1)) If Mid(.Cells(j, 1), k, 1) <> MyVal Then MyFlg = False Exit For Else MyFlg = True End If Next If MyFlg = True Then .Cells(j, 2) = "True" End If Next End With End Sub |
上のメッセージを削除します。
よければパスワードを入力し、削除ボタンをクリックしてください。