Help!

adambc

Active Member
Joined
Jan 13, 2020
Messages
368
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
I've created a Workbook with a single UserForm that opens when the Workbook is opened ...

The UserForm is a simple calculator that takes the input from a TextBox and 2 ComboBoxes, performs an arithmetic calculation in the background and displays the result in another TextBox ...

There is one CommandButton ("Close") which unloads the UserForm and closes the Workbook (and Excel if it's the only Workbook open) ...

The X on the UserForm is disabled ...

But how do I now get to the Visual Basic editor?!!!

Thanks ...
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Is this what your looking for?
VB editor.jpg


If the Developer tab isn't there, see link.
Enable Developer Tab
 
Upvote 0
You will need to open the file in Safe mode.
 
Upvote 0
CTRL + Break AND / OR .....ALT F11
 
Upvote 0
You will need to open the file in Safe mode.
@Fluff

Not sure how that helps?

Excel asks me if I want to open in safe mode (yes), but then displays UserForm - I can't get to the VB editor and Close behaves the same ie Unloads the UserForm and closes Excel?

Help!!!
 
Last edited:
Upvote 0
Did you try using my post #4
@Michael M

Michael

I tried, but struggled to span the various keys with my hand!

But I've found a workaround ...

- open another Workbook (a blank WB is fine)
- open the VB editor
- open my Workbook (which opens the UserForm, but is also shown in the VB editor)
- comment out the Application.Quit code in my Workbook
- close the UserForm (which leaves the WB open)
- edit the VB/UserForm
- test
- uncomment the Application.Quit code
- save the WB
- continue

Thanks to you both for trying to help ...
 
Upvote 0
Glad you sorted it & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,208
Members
448,554
Latest member
Gleisner2

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