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 Dean Reardon Excel Programming 2 December 15th 04 12:18 PM
How Do I Get SetFocus To Work??? Minitman[_4_] Excel Programming 3 November 13th 04 09:18 PM
setfocus after a msgbox simpleMod Excel Programming 1 October 26th 04 04:35 PM
SetFocus problem RFraley Excel Programming 2 September 7th 03 01:18 PM
TextBox.SetFocus steve Excel Programming 4 July 16th 03 07:40 PM


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