Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Is this right? SetFocus weirdness

I have a userform which replaces an inputbox:

Function MyInputBox(caption, label)
UserForm1.TextBox1.SetFocus
UserForm1.TextBox1.Text = ""
UserForm1.caption = caption
UserForm1.Label1.caption = label
UserForm1.Show
MyInputBox = UserForm1.Value
End Function

On the build system (Excel2002/WinXP) the textbox receives the focus when
the form is shown, but on the user system (Excel2000/Win2K) when the form is
shown no control appears to have the focus. Is my code right?
Also, i found if on the user system I set the focus to button2 (last tab
orber) instead the form was shown correctly with the textbox having focus.

Any help would be appreciated.
Dave.


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
Conditional Sum weirdness . . . WillRn Excel Worksheet Functions 1 February 17th 05 10:46 PM
VBE Weirdness questionmark Excel Programming 2 February 6th 05 06:41 PM
Weirdness Kevin L Excel Programming 2 December 1st 04 03:45 PM
VBA IDE Weirdness.... Trip[_2_] Excel Programming 3 June 17th 04 03:49 AM
Charting Weirdness and VBA Sandy V[_6_] Excel Programming 0 February 8th 04 11:19 AM


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