VBA Forms

  • Thread starter Thread starter frost
  • Start date Start date
F

frost

Hello,

I've created a vba form in excel which allows user to enter data. The form
is started using a macro.

Once the form is opened, I cannot access the worksheets until the form is
closed.

Is it possible to access the worksheets when a form is currently running ?
If so how can I do this ?

Thanks in adavnce.
 
Hello,

I've created a vba form in excel which allows user to enter data. The form
is started using a macro.

Once the form is opened, I cannot access the worksheets until the form is
closed.

Is it possible to access the worksheets when a form is currently running ?
If so how can I do this ?

Thanks in adavnce.

Depends on what version of Excel you are running. If you are using
Excel 2000 or higher, you can set the form to modeless when you
initially open the form. It can be done in prior versions as well,
but requires some API calls and such.
Sub showForm()
UserForm1.Show vbModeless
End Sub
 
or just view the forms properties, go down to showmodal and change the value to
false.
 

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