LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default How Do I Get SetFocus On A ComboBox In A Frame?

Hey Mangesh,

I open UserForm1, I load TextBox1 and enter to TextBox2. When I exit
TextBox2, Frame1 becomes visible and the error pops up. CBox1 is
inside Frame1. If I rem out (use an ') CBox1.SetFocus, the focus goes
instead to the "Save" button.

Here is the code that fires upon exiting TextBox2:

Private Sub TextBox2_Exit(ByVal Cancel As MSForms.ReturnBoolean)
BankFrame.Visible = True
CBox1.SetFocus
<Snip
End Sub

Thank you for looking at this and any suggestion you may offer.

-Minitman


On Fri, 5 Nov 2004 03:08:27 -0600, mangesh_yadav
wrote:


When do you get the error. When you open the UserForm or when you open
the excel file you get the run-time error...?

And where have you placed the code Combobox1.SetFocus?

Mangesh




 
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
How to attach legend frame to chart frame? holg3r Charts and Charting in Excel 2 July 7th 05 11:41 PM
SetFocus on a different sheet in VBA AaronC Excel Discussion (Misc queries) 1 June 9th 05 11:18 PM
SetFocus problem RFraley Excel Programming 2 September 7th 03 01:18 PM
SetFocus method in VBA Robin S. Excel Programming 2 July 16th 03 10:20 PM
TextBox.SetFocus steve Excel Programming 4 July 16th 03 07:40 PM


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