+ Reply to Thread
Results 1 to 3 of 3

Ambiguous Name Detected in Class creation

  1. #1
    Registered User
    Join Date
    12-09-2013
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    3

    Question Ambiguous Name Detected in Class creation

    Hi I keep getting a strange error and would appreciate advice. Whilst creating a Class I receive an 'Ambiguous Name Detected' Error and IO cannot fathom why it is occurring. In the following code snippet if I comment out the top line (Private MyRepType as Long) all is fine - if I compile as is then I receive the error. The only place in the Project that MyRepType appears is in the Class and MyRepType is the only error detected. Does anyone have an explanation?

    Private MyRepType As Long
    Public Property Get MyRepType() As Long
    MyRepType = mlngRptType
    End Property

    Public Property Let MyRepType(ByVal lngRptType As Long)
    mlngRptType = lngReportType
    End Property

    Private ReportTitle As String
    Public Property Get ReportTitle() As String

    Dim varRet As Variant
    varRet = Me.GetTitle
    ReportTitle = varRet

    End Property
    Public Property Let ReportTitle(strRptTitle As String)
    ReportTitle = strRptTitle
    End Property

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Ambiguous Name Detected in Class creation

    Please Login or Register  to view this content.
    must be:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-09-2013
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Ambiguous Name Detected in Class creation

    Thanks Izandol - I've just realised what I have been doing (I had a very senior moment)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Ambiguous name detected
    By lulu319 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-23-2013, 12:54 PM
  2. Ambiguous name detected...but why?
    By kocinela in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-30-2012, 11:36 AM
  3. Ambiguous name detected
    By antony moseley in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-03-2010, 03:22 PM
  4. Ambiguous Name Detected
    By TonyforVBA in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-11-2010, 01:33 PM
  5. Ambiguous name detected - please help
    By umax in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-13-2006, 08:26 PM

Tags for this Thread

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