Yeah so can you show me how that works please?
Public Sub temp()
Dim strResponse As String, xlWs As Worksheet, curRange As Range
strResponse = InputBox("Enter search term: ", "Search Term")
Set xlWs = ThisWorkbook.Sheets("Sheet1")
Set curRange = xlWs.Range("A1")
If strResponse <> "" Then
curRange.Value = strResponse
curRange.CheckSpelling SpellLang:=2057
strResponse = curRange.Value
'Let's go searching with strResponse...
End If
End Sub
Private Sub CommandButton1_Click()
Columns("A:A").NumberFormat = "@"
Columns("A:A").ClearContents
Columns("A:A").Interior.Color = vbWhite
Columns("A:A").Borders.LineStyle = xlNone
With Columns("A:A").Interior
.Pattern = xlNone
.TintAndShade = 0
End With
'ActiveWindow.DisplayGridlines = True
Dim response As String, curRow As Long
response = "go"
curRow = 1
While response <> ""
response = InputBox("Enter a word: ")
If response <> "" Then
Cells(curRow, "A") = response
curRow = curRow + 1
End If
Wend
If curRow = 1 Then
MsgBox "No words entered, ending macro."
Exit Sub
End If
If MsgBox("Check spelling?", vbYesNo) = vbNo Then Exit Sub
Dim curCell As Range, badValues As String
curRow = 1
badValues = ""
While curRow <= Range("A65535").End(xlUp).Row
Set curCell = Cells(curRow, "A")
If curCell.Value <> "" Then
If MsgBox("Is '" & curCell.Value & "' spelled incorrectly?", vbYesNo) = vbYes Then
curCell.Interior.Color = vbYellow
curCell.Font.Color = vbRed
badValues = badValues & curCell.Address & ","
End If
End If
curRow = curRow + 1
Wend
If badValues = "" Then Exit Sub
badValues = Left(badValues, Len(badValues) - 1)
Range(badValues).CheckSpelling
End Sub
I want to ask if the word is spelled correctly because the data may have acronyms (e.g., BLT, KSC etc..) which appear to be misspelled words when in actuality they are just acronyms and is spelled correctly.
It sure is when you have 200K-2 million rows, or 200 pages - 500 pages of data in different file formats (i.e. word, pdf, text files etc.).
Dim someArr(1 to 2) as String
someArr(1) = "Hello"
someArr(2) = "World"
Stop
?someArr(1)
?someArr(2)
Ooooh Noooo! I don't think you're being a jerk...I understand what you're saying...no worries.... the flow chart may not make sense to you or anyone else because you can't actually see the data I'm working with and also I'm just testing these macros not really expecting them to function to perfection at this time. I really appreciate your help with this but I probably should leave you alone LOL...thanks!