Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default SetFocus: conditional use of


I have trouble making the *control with focus * a subject of a
condition. Eg. if Commanbutton x has the focus at launch time, I
would want to put it out of commission (disable it). As I exit the
UserForm (with 48 CmdButtons), the focus could be set on any one of
them. Upon re-opening, the intention is to disable the last button that
had the focus for the entire duration of the next rsession.


What is the right syntax to use? The following failed with "Compile
Error Expected Function or Variable" message.

If CommandButton3.SetFocus Then
......
End if


David


--
davidm
------------------------------------------------------------------------
davidm's Profile: http://www.excelforum.com/member.php...o&userid=20645
View this thread: http://www.excelforum.com/showthread...hreadid=480990

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
SetFocus: conditional use of davidm Excel Programming 0 November 2nd 05 12:16 PM
MSG BOX PREVENTS setfocus HELP helpless in iowa Excel Programming 6 January 18th 05 12:30 PM
setfocus Dean Reardon Excel Programming 2 December 15th 04 12:18 PM
setfocus after a msgbox simpleMod[_3_] Excel Programming 1 October 26th 04 07:25 PM
setfocus after a msgbox simpleMod[_2_] Excel Programming 1 October 26th 04 05:25 PM


All times are GMT +1. The time now is 08:47 PM.

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

About Us

"It's about Microsoft Excel"