+ Reply to Thread
Results 1 to 4 of 4

Object required when Calling a procedure from Useform?

  1. #1
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2019
    Posts
    209

    Object required when Calling a procedure from Useform?

    Hi,

    I have a problem, when i try to call a macro from userform, it gives me a macro error "Object Required".
    Attached is the sample of what i am trying to do.

    When you click on the rectangle, fill in any value and Submit, the macro won't recognise texbox1.value.

    Can anyone help me?

    Much Appreciated

    Regards,
    Lex
    Attached Files Attached Files
    Last edited by lexusap; 06-14-2013 at 09:48 PM.

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Object required when Calling a procedure from Useform?

    In the Fill_in_Texbox_Value() Sub, you have to tell excel which textbox you're talking about.

    Please Login or Register  to view this content.
    David
    (*) Reputation points appreciated.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Object required when Calling a procedure from Useform?

    Hi lexusap,

    You could have a TextBox1 on a lot of userforms so you need to use this line...

    Range("A" & EOR1 + 1).Value = UserForm1.TextBox1.Value
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2019
    Posts
    209

    Re: Object required when Calling a procedure from Useform?

    Hi Tinbendr,

    Thanks for your help

    Regards,
    Lex

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1