SetFocus problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
please does anyone know why this code gives run-time error - object doesn't
suport this properity or method



Private Sub Radio2_Click()
Worksheets("start").TextBox3.Enabled = True
Worksheets("start").TextBox3.BackColor = &HFFFFC0
Worksheets("start").TextBox3.SetFocus -THIS LINE CAUSES RUN-TIME ERROR

End Sub

thanks in adavance for any suggestions

JH
 
You have to use activate when it is located on a worksheet. The setfocus
method belongs to the control object and it is only available in a userform.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top