Opening a Userform from a command button

  • Thread starter Thread starter maclachlan
  • Start date Start date
M

maclachlan

I seem to be having problems opening the userform name RepPref
The command button is name Preffrm and is located on a worksheet. Th
Userform is named RepPref, but I get an error when I try to use th
button.

The error is
Run-Time error '424'
Object required


Private Sub Preffrm_Click()
RepPref.Show

I had this working earlier but I'm not sure what has changed to promp
the error.
Thank
 

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

Back
Top