userform's

fryes04

New Member
Joined
May 8, 2012
Messages
18
I have created a userform for users to update and recieve data, however I seem to be stuck. Why is it that when I close the userform, it closes all other excel documents that are currently open as well.

I'm using:

thisworkbook.application.visible = false
userform1.show

on open.......how do I set this userform to close just the workbook it is related to and not all other workbooks as well.

any help would be appreciated.

Thanks
Steve
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Welcome to the Board!

Why not set the User Form to full screen view?

<font face=Calibri>        <SPAN style="color:#007F00">'   DIsplay the User Form in Full Screen mode</SPAN><br>             .WindowState = xlMaximized<br>             Zoom = Int(.Width / Me.Width * 100)<br>             Width = .Width<br>             Height = .Height</FONT>

HTH,
 
Upvote 0
Hi

Thanks for the quick reply. I have already set it for full screen, thank you.

What I'm looking to have happen is when the user form is closed, the work book related to the user form also closes, but only that work book. At the moment all workbooks are closing, but when I go to open one of the other workbooks, it gives the message ""would you like to reopen ****** as if it has hidden the other work books. how do I tell VBA to only hide of close the work book relating to the userform.

Thanks
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top