Hi,
The following code is called up on the click event of a 'spellcheck' button and relates to one of three text frames on a Data Entry/Validation User Form. Problem is, it will correctly identify a spelling error but is incapable of highlighting actual spelling error(s) in the frame in focus, or bring up standard Windows spell check dialog for subsequent correction. Can this be done programatically? The User Form (modal)is designed to prevents users from directly accessing raw Excel (database) data / and other features.
Hopy you can help
Hafod
Private Sub cmdSpellXtra_Click()
'Check HoY Spelling
frmDataEntryFormTutor.txtXtra.SetFocus
If (Application.CheckSpelling(txtHoY.Text) = True) Then
MsgBox ("spelling OK")
Else
MsgBox ("spelling error")
Columns("J:J").Select
'Selection.CheckSpelling SpellLang:=2057
End If
End Sub
The following code is called up on the click event of a 'spellcheck' button and relates to one of three text frames on a Data Entry/Validation User Form. Problem is, it will correctly identify a spelling error but is incapable of highlighting actual spelling error(s) in the frame in focus, or bring up standard Windows spell check dialog for subsequent correction. Can this be done programatically? The User Form (modal)is designed to prevents users from directly accessing raw Excel (database) data / and other features.
Hopy you can help
Hafod
Private Sub cmdSpellXtra_Click()
'Check HoY Spelling
frmDataEntryFormTutor.txtXtra.SetFocus
If (Application.CheckSpelling(txtHoY.Text) = True) Then
MsgBox ("spelling OK")
Else
MsgBox ("spelling error")
Columns("J:J").Select
'Selection.CheckSpelling SpellLang:=2057
End If
End Sub