Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 181
Default UserForm shown and worksheet active

Can I have a user form shown and at the same time be able to work on the
worksheet?

I want to be able to click on a buttom of the form but at the same time be
able to work on the worksheet.

Can this be done?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default UserForm shown and worksheet active

hi
yes you can. a form has 2 modes. modal and modeless.
when a form is modal, the user must supply information or close the form
before you can work on any other part of excel. even code pauses and waits
for input.
when the form is modeless, then the form can be displayed but other parts of
excel and be accessed.
look up the show modal property in vb help.
to display the form modeless.....

Load frmUserform1
frmUserform1.Show 0

the zero at the end of show displays the form as modeless.

Regards
FSt1

Alberto Ast" wrote:

Can I have a user form shown and at the same time be able to work on the
worksheet?

I want to be able to click on a buttom of the form but at the same time be
able to work on the worksheet.

Can this be done?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default UserForm shown and worksheet active


"FSt1" wrote in message
...


Load frmUserform1
frmUserform1.Show 0

the zero at the end of show displays the form as modeless.


Or more logically, use the built-in, descriptive, constants

Load frmUserform1
frmUserform1.Show vbModeless


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default UserForm shown and worksheet active

Note there are behaviour differences. When you reselect a sheet the focus
will still be with the form so you will then need to expressly select the
grid. Also CTRL+F6 to toggle around workbooks will not function if the form
has the focus.

--
Ken
"Using Dbase dialects since 82"
"Started with Visicalc in the same year"


"Bob Phillips" wrote:


"FSt1" wrote in message
...


Load frmUserform1
frmUserform1.Show 0

the zero at the end of show displays the form as modeless.


Or more logically, use the built-in, descriptive, constants

Load frmUserform1
frmUserform1.Show vbModeless



Reply
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
UserForm initialize event run when UserForm is shown [email protected] Excel Programming 2 June 13th 07 02:49 AM
Using Cells while UserForm shown T_o_n_y Excel Programming 8 February 3rd 07 09:39 PM
Userform to enter values and shown in same userform in list helmekki[_104_] Excel Programming 0 November 19th 05 03:23 PM
Userform Shown while macro runs ExcelMonkey[_190_] Excel Programming 3 March 15th 05 05:05 PM
Viewing a worksheet while a UserForm is active Alan Glaister[_2_] Excel Programming 2 March 8th 05 06:57 PM


All times are GMT +1. The time now is 04:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"