Hi,
I am a newby to VBA and copied a VBA macro to my Excel to test.
The PARTIAL code is:
Now, I run this and get a runtime error on the last line in this example![]()
Sub MakeUserForm() Dim TempForm As Object Dim NewButton As MSForms.commandbutton Dim NewLabel As MSForms.Label Dim NewTextBox As MSForms.TextBox Dim NewOptionButton As MSForms.OptionButton Dim NewCheckBox As MSForms.CheckBox Dim X As Integer Dim Line As Integer Dim MyScript(4) As String 'This is to stop screen flashing while creating form Application.VBE.MainWindow.Visible = False
. I have all the references set according to the directions, but this keeps coming up
.
Please help me understand why this happens.
Also, this is posted at Tek-Tips
(http://www.tek-tips.com/viewthread.c...1421046&page=1) but I cannot get anyone to finalize an answer.
P.S. The code is at http://www.tek-tips.com/faqs.cfm?fid=5757 and was from Wallenbach originally - per the post.
Thanks
E
Bookmarks