View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Minitman[_4_] Minitman[_4_] is offline
external usenet poster
 
Posts: 273
Default How Do I Get SetFocus To Work???

Greetings,

I am trying to use SetFocus on my UserForm and I keep getting this
error:

Run-time error '-2147418113 (8000ffff)':
Unexpected call to method or property access.

The debugger then highlights this line:

BankFrame.Visible = True
CBox1.SetFocus <<<<


CBox1 is the first item on a frame this line comes just after the
frame is made visible. If I 'rem' out the line the code the rest of
the code works with mouse clicks to get the focus. It's the same with
getting off the frame.

Does anyone have any idea as to what is going on???

Any help would be appreciated.

TIA

-Minitman