Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Not a difficult addition. Just below the line Dim rText As Range *add* these lines: Dim sMsg As String Dim lResponse As Long sMsg = "Spelling for this box has been checked." & vbLf & vbLf sMsg = sMsg & "Click OK to continue or Cancel to end spell checking." Then, *replace* the line MsgBox "Spelling for this ActiveX control has been checked." with these lines: lResponse = MsgBox(sMsg, vbOKCancel) If lResponse = vbCancel Then Exit Sub End If That ought to get you there. You can change the text in sMsg to whatever would make the most sense to your users. James -- jamescox ------------------------------------------------------------------------ jamescox's Profile: http://www.thecodecage.com/forumz/member.php?userid=449 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=120599 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This worked, but it was a little unpredictable in the path it chose when
checking the boxes. I'm just going to stick with the original code. Thanks again for all your assistance! "jamescox" wrote: Not a difficult addition. Just below the line Dim rText As Range *add* these lines: Dim sMsg As String Dim lResponse As Long sMsg = "Spelling for this box has been checked." & vbLf & vbLf sMsg = sMsg & "Click OK to continue or Cancel to end spell checking." Then, *replace* the line MsgBox "Spelling for this ActiveX control has been checked." with these lines: lResponse = MsgBox(sMsg, vbOKCancel) If lResponse = vbCancel Then Exit Sub End If That ought to get you there. You can change the text in sMsg to whatever would make the most sense to your users. James -- jamescox ------------------------------------------------------------------------ jamescox's Profile: http://www.thecodecage.com/forumz/member.php?userid=449 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=120599 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() One of the most important thing in working with spreadsheets is knowing when to quit! Having said that, if you change the line in the 'original code' from If Err = 0 Then to If Err = 0 And Len(rText.Cells(1).Value) < 0 Then your users won't see the code stop for empty textboxes and therefore they won't have to click OK in for those textboxes. Now I'm going to put down the keyboard and back slowly away - and maybe I won't compulsively make any more 'enhancements'... :Bgr -- jamescox ------------------------------------------------------------------------ jamescox's Profile: http://www.thecodecage.com/forumz/member.php?userid=449 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=120599 |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Well, now that you brought that up, I had to try it. I like this one and I
thank you. I suspect always trying to "enhance" makes people such as yourselves as knowledgeable as you are. Thanks again! "jamescox" wrote: One of the most important thing in working with spreadsheets is knowing when to quit! Having said that, if you change the line in the 'original code' from If Err = 0 Then to If Err = 0 And Len(rText.Cells(1).Value) < 0 Then your users won't see the code stop for empty textboxes and therefore they won't have to click OK in for those textboxes. Now I'm going to put down the keyboard and back slowly away - and maybe I won't compulsively make any more 'enhancements'... :Bgr -- jamescox ------------------------------------------------------------------------ jamescox's Profile: http://www.thecodecage.com/forumz/member.php?userid=449 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=120599 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Text Boxes and Check Marks | Excel Discussion (Misc queries) | |||
Spell Check | New Users to Excel | |||
Using Spell Check function in text box when worksheet is protected | Excel Discussion (Misc queries) | |||
... Can I set Spell Check to automatically check my spelling ... | Setting up and Configuration of Excel | |||
Strange behavior w/ Text, Button, & Check Boxes | Excel Discussion (Misc queries) |