Hello Everyone,
I'm conducting a UserForm tutorial posted on following site:
http://www.excel-vba-easy.com/vba-us...excel-vba.html
but I can't seem to launch the form to test it. When I click on the command button that I have created to do this I recieve the error :
"Runtime Error '424' Object Required"
I can't seem to find my mistake. Can anyone offer anyhelp?
I've attached the workbook.
Thanks Everyone, you've all been great since I first signed up!![]()
Last edited by ashleys.nl; 10-13-2011 at 09:28 AM.
Hi,
In the UserForm_Initialize() event handler, check for some incorrectly named controls.
For example, in the code:
But the control is called NameTestBox'Empty NameTextBox NameTextBox.Value = ""
Thanks I'll give it a re-read. Good Catch.![]()
The SetFocus line is failing & causing an error.
Use Option Explicit & you will pick up the mistake
Last edited by royUK; 10-13-2011 at 09:28 AM.
Hope that helps.
RoyUK
--------
If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need
For Excel Tips & Solutions, free examples and tutorials why not check out my downloads
New members please read & follow the Forum Rules
Remember to mark your questions Solved and rate the answer(s)
GOT IT! Thanks guys! there were some labeling issues that I missed!
Thank you all soo much! Its up and running great now!
I've attached the latest copy for others.![]()
If you are satisfied with the solution(s) provided, please mark your thread as Solved.
How to mark a thread Solved
Go to the first post
Click edit
Click Go Advanced
Just below the word Title you will see a dropdown with the word No prefix.
Change to Solved
Click Save
Hope that helps.
RoyUK
--------
If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need
For Excel Tips & Solutions, free examples and tutorials why not check out my downloads
New members please read & follow the Forum Rules
Remember to mark your questions Solved and rate the answer(s)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks