Is this a bug ?

Jaafar Tribak

Well-known Member
Joined
Dec 5, 2002
Messages
9,619
Office Version
  1. 2016
Platform
  1. Windows
Hi all and happy new year.

I have a userform with a single multipage control on it.

In the form activate event, I add a new tab to the multipage as follows :
VBA Code:
Private Sub UserForm_Activate()
Me.MultiPage1.Pages.Add
Me.MultiPage1.Pages(Me.MultiPage1.Pages.Count - 1).Name = "testpage"
Me.MultiPage1.Pages(Me.MultiPage1.Pages.Count - 1).Caption = "testpage"
End Sub

So far, everything works fine and the new tab is added as expected.

Now, here is the problem:

If I have a seperate Frame control or a seperate MultiPage anywhere on the form and I run the above code, the entire excel application crashes and closes !!

I have no other code behind the userform. In fact, I have tested this in a blank fresh workbook\Form and still crashes excel !

I have no idea why having a frame or a another mulipage on the form will cause the above code to crash the entire application.

Does this happen to you guys ? Is this a known bug ?

I am using excel 2016 x64bit .

Thanks.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
I get an automation error (the object invoked has disconnected from its client) but Excel doesn't actually crash unless I try and step through the code. (Excel 2016 32bit)
 
Upvote 0
I get the automation error & then excel crashes, using 365 32bit
 
Upvote 0
Hi

Using Excel 365 64bit channel beta, no crash!
 
Upvote 0
Thank you guys for testing and confirming the issue.

I don't even get an error - just straight freezing of excel and then closing.
 
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,428
Members
449,083
Latest member
Ava19

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