#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default form

Hello,
I created a form that has some buttons. When pressed some code excecutes
and creates an excel spreadsheet.
However I cannot access/modify the sheet unless I close the form window.
Is there any way to keep the from visible/accessible while working with the
spreadsheet?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default form

The show method has one optional argument which specifies if the form is
modal or not. Set it to false...

UserForm1.Show False

--
HTH...

Jim Thomlinson


"David" wrote:

Hello,
I created a form that has some buttons. When pressed some code excecutes
and creates an excel spreadsheet.
However I cannot access/modify the sheet unless I close the form window.
Is there any way to keep the from visible/accessible while working with the
spreadsheet?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default form

Thanks for the reply,
Where do I insert this command?
I inseted it in the main command button that runs my program and got an error.

Thanks

"Jim Thomlinson" wrote:

The show method has one optional argument which specifies if the form is
modal or not. Set it to false...

UserForm1.Show False

--
HTH...

Jim Thomlinson


"David" wrote:

Hello,
I created a form that has some buttons. When pressed some code excecutes
and creates an excel spreadsheet.
However I cannot access/modify the sheet unless I close the form window.
Is there any way to keep the from visible/accessible while working with the
spreadsheet?

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default form

How do you bring up your form? At some point you have to load the form. It is
at this point that you want to specify it as non-modal.

Forms are either modal (have exclusive focus) or non-modal. The code that I
posted makes the form non-modal so that you can select outside of the form.
--
HTH...

Jim Thomlinson


"David" wrote:

Thanks for the reply,
Where do I insert this command?
I inseted it in the main command button that runs my program and got an error.

Thanks

"Jim Thomlinson" wrote:

The show method has one optional argument which specifies if the form is
modal or not. Set it to false...

UserForm1.Show False

--
HTH...

Jim Thomlinson


"David" wrote:

Hello,
I created a form that has some buttons. When pressed some code excecutes
and creates an excel spreadsheet.
However I cannot access/modify the sheet unless I close the form window.
Is there any way to keep the from visible/accessible while working with the
spreadsheet?

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default form

I am new to VB so please bear with me,
I started Excel, Alt F11, created a form with command buttons.
When I click "run" and select "run sub/userForm(F5), the form appears in run
mode in the middle of excel spreadsheet. I click one of the command buttons
in which I have all my code. After the code finishes excecution, the form is
in the middle of spreadsheet 1(which is created by running code from the
command button). I can move the from but I cannot do anything in excel
unless I click (X button) to close the form.
I first inserted you code "UserForm1.Show False" in the command button code
then I inseted it in "UserForm_Click()" I got errors both times.

Thanks
"Jim Thomlinson" wrote:

How do you bring up your form? At some point you have to load the form. It is
at this point that you want to specify it as non-modal.

Forms are either modal (have exclusive focus) or non-modal. The code that I
posted makes the form non-modal so that you can select outside of the form.
--
HTH...

Jim Thomlinson


"David" wrote:

Thanks for the reply,
Where do I insert this command?
I inseted it in the main command button that runs my program and got an error.

Thanks

"Jim Thomlinson" wrote:

The show method has one optional argument which specifies if the form is
modal or not. Set it to false...

UserForm1.Show False

--
HTH...

Jim Thomlinson


"David" wrote:

Hello,
I created a form that has some buttons. When pressed some code excecutes
and creates an excel spreadsheet.
However I cannot access/modify the sheet unless I close the form window.
Is there any way to keep the from visible/accessible while working with the
spreadsheet?

Thanks



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default form

Now I see what you are up to. The form that you created has a modal property.
In the VBE click on View - Properties to bring up the properties window if
it is not already displayed. Select the form and Scroll down the list to a
property called ShowModal. Change it from True to False. Now run the form...
--
HTH...

Jim Thomlinson


"David" wrote:

I am new to VB so please bear with me,
I started Excel, Alt F11, created a form with command buttons.
When I click "run" and select "run sub/userForm(F5), the form appears in run
mode in the middle of excel spreadsheet. I click one of the command buttons
in which I have all my code. After the code finishes excecution, the form is
in the middle of spreadsheet 1(which is created by running code from the
command button). I can move the from but I cannot do anything in excel
unless I click (X button) to close the form.
I first inserted you code "UserForm1.Show False" in the command button code
then I inseted it in "UserForm_Click()" I got errors both times.

Thanks
"Jim Thomlinson" wrote:

How do you bring up your form? At some point you have to load the form. It is
at this point that you want to specify it as non-modal.

Forms are either modal (have exclusive focus) or non-modal. The code that I
posted makes the form non-modal so that you can select outside of the form.
--
HTH...

Jim Thomlinson


"David" wrote:

Thanks for the reply,
Where do I insert this command?
I inseted it in the main command button that runs my program and got an error.

Thanks

"Jim Thomlinson" wrote:

The show method has one optional argument which specifies if the form is
modal or not. Set it to false...

UserForm1.Show False

--
HTH...

Jim Thomlinson


"David" wrote:

Hello,
I created a form that has some buttons. When pressed some code excecutes
and creates an excel spreadsheet.
However I cannot access/modify the sheet unless I close the form window.
Is there any way to keep the from visible/accessible while working with the
spreadsheet?

Thanks

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default form

Great, It worked. Thanks man.

"Jim Thomlinson" wrote:

Now I see what you are up to. The form that you created has a modal property.
In the VBE click on View - Properties to bring up the properties window if
it is not already displayed. Select the form and Scroll down the list to a
property called ShowModal. Change it from True to False. Now run the form...
--
HTH...

Jim Thomlinson


"David" wrote:

I am new to VB so please bear with me,
I started Excel, Alt F11, created a form with command buttons.
When I click "run" and select "run sub/userForm(F5), the form appears in run
mode in the middle of excel spreadsheet. I click one of the command buttons
in which I have all my code. After the code finishes excecution, the form is
in the middle of spreadsheet 1(which is created by running code from the
command button). I can move the from but I cannot do anything in excel
unless I click (X button) to close the form.
I first inserted you code "UserForm1.Show False" in the command button code
then I inseted it in "UserForm_Click()" I got errors both times.

Thanks
"Jim Thomlinson" wrote:

How do you bring up your form? At some point you have to load the form. It is
at this point that you want to specify it as non-modal.

Forms are either modal (have exclusive focus) or non-modal. The code that I
posted makes the form non-modal so that you can select outside of the form.
--
HTH...

Jim Thomlinson


"David" wrote:

Thanks for the reply,
Where do I insert this command?
I inseted it in the main command button that runs my program and got an error.

Thanks

"Jim Thomlinson" wrote:

The show method has one optional argument which specifies if the form is
modal or not. Set it to false...

UserForm1.Show False

--
HTH...

Jim Thomlinson


"David" wrote:

Hello,
I created a form that has some buttons. When pressed some code excecutes
and creates an excel spreadsheet.
However I cannot access/modify the sheet unless I close the form window.
Is there any way to keep the from visible/accessible while working with the
spreadsheet?

Thanks

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
Strange issue freezing parent form when unloading a child form Stefano Gatto Excel Programming 1 November 11th 05 04:42 PM
Transfer data to form from Excel range upon loading of form. Rob Crawford Excel Programming 2 October 24th 05 03:59 PM
how can I make a form number change everytime the form is opened babydumplingspita Excel Worksheet Functions 1 October 10th 05 07:58 PM
form in excel to be attached to the emails address in the form upon sumission Abdulkader Bhanpurawala via OfficeKB.com Excel Programming 6 July 10th 05 10:48 AM
Is it possible to open the VBA form with a link in a sheet and to pass variable from a cell to the VBA form? Daniel[_14_] Excel Programming 1 August 29th 04 01:20 PM


All times are GMT +1. The time now is 03:25 PM.

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"