+ Reply to Thread
Results 1 to 3 of 3

Invalid, Unqualified Referance error

  1. #1
    Registered User
    Join Date
    03-26-2008
    Posts
    24

    Invalid, Unqualified Referance error

    I have realized I need to trap for an error when a Shape on the Structures sheet does not exist. So when
    Please Login or Register  to view this content.
    errors because that Shape does not exist I want to referance
    Please Login or Register  to view this content.
    I have tried
    Please Login or Register  to view this content.
    But then the user gets an error when they select an item that does not have an associated Shape. So I wanted to bring up a shape named Blank instead.

    Here is the code. Currently I am getting a Compile Error, Invalid, Unqualified referance in the last line before the End.

    Please Login or Register  to view this content.

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

    I revised your macro to trap the error. You're getting the error because this line of code belongs to the control block With ComboBox1. The period prefix indicates this.
    Please Login or Register  to view this content.
    Revised Macro with Error Handling
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    03-26-2008
    Posts
    24
    Thanks Leith. That works perfect now. I love doing this stuff but I don't get a chance often enough to learn all I need to know. I am sure I have forgotten more VBA than I know now.

+ 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