LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Pat Pat is offline
external usenet poster
 
Posts: 122
Default Cancel to take focus

With the following example messagebox the Ok button by default takes the
focus. What do I need to add to allow the Cancel button to take the focus?

If IsEmpty(Cells(22, 11)) Then
MsgBox "Cancel has the focus"
Exit Sub
End If

Thank you if you can help out.
Pat


 
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
Workbook_BeforeClose(Cancel As Boolean) - Cancel won't work gpmichal Setting up and Configuration of Excel 1 May 12th 09 02:33 AM
OK/Cancel box functionality? sycsummit Excel Discussion (Misc queries) 1 February 11th 09 04:59 PM
msgbox cancel? sycsummit Excel Discussion (Misc queries) 2 February 11th 09 04:37 PM
Cancel/Exit Sub Howard Excel Discussion (Misc queries) 3 December 16th 08 09:53 PM
Input Box Cancel Jase Excel Discussion (Misc queries) 2 September 15th 08 11:42 PM


All times are GMT +1. The time now is 10:23 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"