Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Setup Spell Checking on Userform textboxes

Hi is it possible to have a button on a userform to enable
the user to check spelling in textboxes?.
TIA
Charles
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 131
Default Setup Spell Checking on Userform textboxes

You can use Excel's built-in spell checking through VBA
with the CheckSpelling method. There is one catch: it
only checks a word at a time unless you use it on a range
or worksheet. So you have two choices: parse your textbox
into words and check each word (and design your own user
interface if errors found!) or put the textbox contents
temporarily into some cell on your worksheet and check
that cell. The code below accomplishes the 2nd method
(easier but not as elegant):

Private Sub CommandButton1_Click()


Range("TempCell") = Me.TextBox1
Range("TempCell").CheckSpelling
Me.TextBox1 = Range("TempCell")

Range("TempCell") = ""

End Sub

-----Original Message-----
Hi is it possible to have a button on a userform to

enable
the user to check spelling in textboxes?.
TIA
Charles
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Spell Checking with checking cell notes jfitzpat Excel Discussion (Misc queries) 0 August 8th 07 10:26 PM
spell checking options dvs_47 Excel Worksheet Functions 2 March 6th 06 09:16 PM
UserForm TextBoxes Rob Excel Discussion (Misc queries) 2 August 6th 05 03:07 AM
userform textboxes again Jo[_6_] Excel Programming 4 October 21st 03 07:25 PM


All times are GMT +1. The time now is 11:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"