+ Reply to Thread
Results 1 to 4 of 4

Object Doesn't support this property or method Error

Hybrid View

  1. #1
    Registered User
    Join Date
    06-07-2011
    Location
    Los Angeles
    MS-Off Ver
    Excel 2003
    Posts
    56

    Object Doesn't support this property or method Error

    I was changing my code up trying to figure out how to put in global variables, but I erased all the stuff I added for the global variables but I am still getting the error "Object Doesn't support this property or method Error."

    Here is the code in "This Workbook" I don't think anything is wrong with it. What causes this error?

    Public Sub ShowForm()
    
    PMD_Wizard.Show vbMoeless
    
    End Sub
    
    Public Sub ShowSubTotal()
    
    SubtotalTool().Show vbMoeless
    
    End Sub

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Object Doesn't support this property or method Error

    Try vbModeless not vbMoeless.

    If you use Option Explicit life becomes less frustrating.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Registered User
    Join Date
    06-07-2011
    Location
    Los Angeles
    MS-Off Ver
    Excel 2003
    Posts
    56

    Re: Object Doesn't support this property or method Error

    Quote Originally Posted by Marcol View Post
    Try vbModeless not vbMoeless.

    If you use Option Explicit life becomes less frustrating.
    D'oh! I'm new to visual basic. Apparently there was something wrong with my form that I was trying to access.

    What is Option Explicit?
    Last edited by andrew c.; 06-13-2011 at 02:04 PM.

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Object Doesn't support this property or method Error

    See this link
    Chip Pearson - Declaring Variables

    This will get you started on the right foot if you are new to VBa

+ 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