+ Reply to Thread
Results 1 to 3 of 3

A problem with creating own class in EXCEL 2003

  1. #1
    Registered User
    Join Date
    12-10-2009
    Location
    Saratov
    MS-Off Ver
    Excel 2003
    Posts
    7

    A problem with creating own class in EXCEL 2003

    I trying to create my own class in class model in Excel. It is a code :
    Please Login or Register  to view this content.
    And after i trying to create an instance of this class using button

    Private Sub CommandButton1_Click()

    Dim stock As Class1
    Set stock = New Class1

    End Sub
    But then i press the button this message has occured :
    http://s54.radikal.ru/i146/0912/fa/25a9b043faff.jpg

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

    Re: A problem with creating own class in EXCEL 2003

    The error "Ambiguous name detected: cshort_name"
    is caused by having a Let property,

    Please Login or Register  to view this content.
    with the same name as the private variable used to store it's value.

    Give the private variable a new name.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    12-10-2009
    Location
    Saratov
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: A problem with creating own class in EXCEL 2003

    Thanks! It is work!

+ 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