+ Reply to Thread
Results 1 to 4 of 4

Run-time error '438': Object doesn't support this property or method

  1. #1
    Registered User
    Join Date
    04-24-2006
    Posts
    14

    Run-time error '438': Object doesn't support this property or method

    I can't work out why I'm gettinbg the 438 error when I use the following piece of code.
    It should check to see if some check boxes are clicked, and if text is entered, and if not, returns an error message, but whenever I check the box I get a 438 Run-time error : Object doesn't support this property or method
    any help - appreciated :D
    Please Login or Register  to view this content.
    It breaks on the
    If ActiveWorkbook.Sheets("CallCredit").txtCallCredit.Text = "" Then
    Line.

    am I misssing a reference or something?
    so confused!

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon ophelia

    The problem lies with the fact that you appear to be using Control Toolbox objects' code to work across sheets. And they just won't do it. Plain and simple. They will only work satisfactorily on the sheet on which they reside.

    The only way round it is to use the Call function to run a macro that runs the necessary tests, which can then hand control back to the object's code. I agree it's a bit of a fudgey workaround, but is probably about the best you can hope for.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Ophelia,

    Here's how to check a Control Toolbox TextBox's value. It isn't straight forward like a Form Toolbar control.

    Please Login or Register  to view this content.
    Added to your Macro:
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  4. #4
    Registered User
    Join Date
    04-24-2006
    Posts
    14
    hi, sorry it's taken a few days before I could reply, I've tried out your code and whilst I appreciate what you've done, I'm still having problems, basically, I'm checking to see if one of 3 check boxes has been ticked, and if not it displays the message "You have not selected any new, change or deletion to any signon?" in a text box.
    It currently works for other check box groups on this sheet but not for this new one, I've tried your module but when I select a check box it still displays that message.
    The code is rather long and it's a big spreadsheet, which I can email to you if needs be?
    anyhelp would be appreciated.
    Thanks!

+ 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