Ask Experts Questions for FREE Help !
Ask
    daves's Avatar
    daves Posts: 1, Reputation: 1
    New Member
     
    #1

    Feb 17, 2006, 12:39 PM
    Vb 6.3 run time error
    I need some help here.
    I am writing applications for my company using Excel 2003 and Visual Basic 6.3.
    The applications I have written before we got Windows XP used Excel and Visual Basic 6.0. To call up the Input form I have used the following code:

    Sub auto_open()
    UserForm1.Show
    End Sub

    When I tried to use the same code, in VB 6.3 I got the following error message

    Run Time error '424':

    Object required

    I am not sure what to do. I have looked in the Microsoft website and all of the information I was able to find seem to indicate that this code should work.

    When I ran the debug function, 'UserForm1.Show' was highlighted. I would appreciate any suggestions or information that anyone has.

    Thanks

    daves
    Simon887's Avatar
    Simon887 Posts: 1, Reputation: 1
    New Member
     
    #2

    Sep 22, 2008, 07:54 AM
    I use VB 6.3 as well. I'm just a beginner and I follow Gary Cornell's book. For starting or opening up a form.
    Try,
    Sub Form_Load() 'instead of auto_open
    UserForm1.Show 'add the show method
    End Sub

    I hope you find it useful.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Computer won't start up first time, but will second time [ 8 Answers ]

So this is a completely different computer first off. When I press the power button, everything powers up, but the computer does not post, or beep. If you leave the computer on for like 10 seconds, turn it off, and then turn it immediately back on, it turns on, posts, beeps, boots into Windows...

Part time or full time resident? [ 3 Answers ]

Hi, I am a student in PA and spent about 3 months in New York during the summer for an internship. Since my primary domicile was still in PA (since I had to return for the next year of classes), am I a resident of PA for the full year or a part year resident? Likewise when I file state tax...

Run time error '10055' [ 2 Answers ]

My PC keeps displaying this message runtime error '10055' no buffer space available . Another problem I'm having is that I cannot install drivers and when I click owner its taking longer than normal to load. Recently had a virus apdoor, got rid of it but wondering if when I got rid of it I've...

Access Run Time Error [ 1 Answers ]

Runtime error '1004'. How can I have this fixed!


View more questions Search