+ Reply to Thread
Results 1 to 7 of 7

[SOLVED] automation error on Validation.Add

  1. #1
    Registered User
    Join Date
    07-25-2008
    Location
    Tucson, AZ
    Posts
    90

    [SOLVED] automation error on Validation.Add

    Please Login or Register  to view this content.
    any idea why I'm getting this error?

    "automation error - object invoked has been disconnected from its clients"
    Last edited by twd000; 02-06-2009 at 11:21 AM. Reason: solved

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: automation error on Validation.Add

    Hi

    Try putting a full stop infront of validation (.Validation).


    rylo

  3. #3
    Registered User
    Join Date
    07-25-2008
    Location
    Tucson, AZ
    Posts
    90

    Re: automation error on Validation.Add

    that's strange - it had a full period when I copied/pasted it?

    here it is:

    Please Login or Register  to view this content.
    still doesn't work - "object disconnected from clients"

    any ideas?

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: automation error on Validation.Add

    We need more information.

    That code excerpt works in both xl2003 and xl2007.
    Cheers
    Andy
    www.andypope.info

  5. #5
    Registered User
    Join Date
    07-25-2008
    Location
    Tucson, AZ
    Posts
    90

    Re: automation error on Validation.Add

    I'm running Excel2003

    I'm wondering why it would trigger an Automation Error. The only external object I connect to is a MS Access database but that it not run in this module/procedure, and the error occurs on Validation.Add which should only be connecting to Thisworkbook.Sheets("Design Factor Matrix")

    how could I have trouble connecting to that object?

    The code is enacted by a button click on a different worksheet, which is why I qualified the range reference

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: automation error on Validation.Add

    Is the button from the Controls Toolbox (ActiveX) ?
    If so make sure the TakeFocusOnClick property is set to false.

  7. #7
    Registered User
    Join Date
    07-25-2008
    Location
    Tucson, AZ
    Posts
    90

    Re: automation error on Validation.Add

    wow! talk about about an obscure error - I never would have figured that out

    thanks Andy

+ 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