Help!

adambc

Board Regular
Joined
Jan 13, 2020
Messages
197
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

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

GlennJ

Board Regular
Joined
Mar 26, 2018
Messages
59
Office Version
  1. 2016
Platform
  1. Windows
Is this what your looking for?
VB editor.jpg


If the Developer tab isn't there, see link.
Enable Developer Tab
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
65,728
Office Version
  1. 365
Platform
  1. Windows
You will need to open the file in Safe mode.
 

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
21,104
Office Version
  1. 2016
  2. 2013
  3. 2007
Platform
  1. Windows
CTRL + Break AND / OR .....ALT F11
 

adambc

Board Regular
Joined
Jan 13, 2020
Messages
197
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows

ADVERTISEMENT

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:

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
21,104
Office Version
  1. 2016
  2. 2013
  3. 2007
Platform
  1. Windows
Did you try using my post #4
 

adambc

Board Regular
Joined
Jan 13, 2020
Messages
197
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
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 ...
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
65,728
Office Version
  1. 365
Platform
  1. Windows
Glad you sorted it & thanks for the feedback.
 

Forum statistics

Threads
1,147,734
Messages
5,742,865
Members
423,760
Latest member
photogfrog

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
Top