Hello,
is it possible to validate a word that you find, with a list of words in an excel sheet?
if it is possible can you then maybe show how the code should look?
i will be gratefull for any help that i can get.
#Rumba
Hello,
is it possible to validate a word that you find, with a list of words in an excel sheet?
if it is possible can you then maybe show how the code should look?
i will be gratefull for any help that i can get.
Hello,
is it possible to validate a word that you find, with a list of words in an excel sheet?
if it is possible can you then maybe show how the code should look?
i will be gratefull for any help that i can get.
Hello,
is it possible to validate a word that you find, with a list of words in an excel sheet?
if it is possible can you then maybe show how the code should look?
i will be gratefull for any help that i can get.
Hello,
is it possible to validate a word that you find, with a list of words in an excel sheet?
if it is possible can you then maybe show how the code should look?
i will be gratefull for any help that i can get.
Hi besafe,
so maybe something like this?
Before: After:

Here is my macro:
Sub test()
'Find the last row in the spreadsheet
LastRow = Sheet1.Cells.SpecialCells(xlCellTypeLastCell).Row
'MsgBox LastRow
'Code to retrieve the strings you are interested in from Rumba..
Dim MyString(2) As String
MyString(0) = "BeSafe"
MyString(1) = "David"
MyString(2) = "Tom"
Dim FoundMatchList() As String
ReDim FoundMatchList(LastRow)
'Code to find matches of each strings in the MyString array
For i = 0 To UBound(MyString)
For j = 1 To LastRow
If UCase(Sheet1.Cells(j, 2).Value) = UCase(MyString(i)) Then
'MsgBox "Found Match: " & MyString(i)
FoundMatch = 1
FoundMatchList(j - 1) = MyString(i)
ElseIf j = LastRow Then
'MsgBox MyString(i) & " not found"
End If
Next j
Next i
'Insert a column between Column 1 and Column 2 if a match was found
If FoundMatch = 1 Then
FoundMatchList(0) = "MatchFound"
Columns(2).Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove 'or xlFormatFromRightOrBelow
'Insert matches
For i = 1 To LastRow
Sheet1.Cells(i, 2).Value = FoundMatchList(i - 1)
Next i
'AutoFit new Column
Sheet1.Columns(2).EntireColumn.AutoFit
End If
End Sub
Cheers,
Tom
Hello,
is it possible to validate a word that you find, with a list of words in an excel sheet?
if it is possible can you then maybe show how the code should look?
i will be gratefull for any help that i can get.
Hi besafe,
so maybe something like this?
Before: After:

Here is my macro:
Sub test()
'Find the last row in the spreadsheet
LastRow = Sheet1.Cells.SpecialCells(xlCellTypeLastCell).Row
'MsgBox LastRow
'Code to retrieve the strings you are interested in from Rumba..
Dim MyString(2) As String
MyString(0) = "BeSafe"
MyString(1) = "David"
MyString(2) = "Tom"
Dim FoundMatchList() As String
ReDim FoundMatchList(LastRow)
'Code to find matches of each strings in the MyString array
For i = 0 To UBound(MyString)
For j = 1 To LastRow
If UCase(Sheet1.Cells(j, 2).Value) = UCase(MyString(i)) Then
'MsgBox "Found Match: " & MyString(i)
FoundMatch = 1
FoundMatchList(j - 1) = MyString(i)
ElseIf j = LastRow Then
'MsgBox MyString(i) & " not found"
End If
Next j
Next i
'Insert a column between Column 1 and Column 2 if a match was found
If FoundMatch = 1 Then
FoundMatchList(0) = "MatchFound"
Columns(2).Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove 'or xlFormatFromRightOrBelow
'Insert matches
For i = 1 To LastRow
Sheet1.Cells(i, 2).Value = FoundMatchList(i - 1)
Next i
'AutoFit new Column
Sheet1.Columns(2).EntireColumn.AutoFit
End If
End Sub
Cheers,
Tom
Hello,
is it possible to validate a word that you find, with a list of words in an excel sheet?
if it is possible can you then maybe show how the code should look?
i will be gratefull for any help that i can get.
Hello,
is it possible to validate a word that you find, with a list of words in an excel sheet?
if it is possible can you then maybe show how the code should look?
i will be gratefull for any help that i can get.
Hello,
is it possible to validate a word that you find, with a list of words in an excel sheet?
if it is possible can you then maybe show how the code should look?
i will be gratefull for any help that i can get.
Hello,
is it possible to validate a word that you find, with a list of words in an excel sheet?
if it is possible can you then maybe show how the code should look?
i will be gratefull for any help that i can get.
Hello,
is it possible to validate a word that you find, with a list of words in an excel sheet?
if it is possible can you then maybe show how the code should look?
i will be gratefull for any help that i can get.
Hello,
is it possible to validate a word that you find, with a list of words in an excel sheet?
if it is possible can you then maybe show how the code should look?
i will be gratefull for any help that i can get.
Hello,
is it possible to validate a word that you find, with a list of words in an excel sheet?
if it is possible can you then maybe show how the code should look?
i will be gratefull for any help that i can get.
Hello,
is it possible to validate a word that you find, with a list of words in an excel sheet?
if it is possible can you then maybe show how the code should look?
i will be gratefull for any help that i can get.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.