+ Reply to Thread
Results 1 to 3 of 3

Compile error:Method or data member not found

Hybrid View

  1. #1
    Registered User
    Join Date
    03-01-2013
    Location
    india
    MS-Off Ver
    Excel 2010
    Posts
    31

    Compile error:Method or data member not found

    Hi Friends,

    I am working on a excel vba file which is working fine one the system where windows 7 is installed but Ms Visio is not installed.
    the same code does not work on the system where MS visio 2013 is installed.

    here is the code:
    ------
    Private Sub Workbook_Open()

    Sheet12.Activate


    If Sheet11.CommandButton1.Enabled = True Then


    Sheet11.CommandButton2.Enabled = False

    Else

    Sheet11.CommandButton2.Enabled = True

    End If


    End Sub
    -------
    Error:
    ---------------------------
    Microsoft Visual Basic for Applications
    ---------------------------
    Compile error:

    Method or data member not found
    ---------------------------
    OK Help
    ---------------------------

    This does not give any error where ms visio is not installed.

    on MS visio systems it gives the below error while opening the file as the macro is applied on open workbook event...


    ---------------------------
    Microsoft Visual Basic for Applications
    ---------------------------
    Compile error in hidden module: ThisWorkbook.
    This error commonly occurs when code is incompatible with the version, platform, or architecture of this application. Click "Help" for information on how to correct this error.
    ---------------------------
    OK Help
    ---------------------------


    Please suggest a solution.

    thanks in advance.

  2. #2
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: Compile error:Method or data member not found

    Please observe forum guidelines and apply code tags to your code.

    You might check your references and see if anything is missing.
    Acts 4:12
    Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.

  3. #3
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Compile error:Method or data member not found

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE] [/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

+ 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. [SOLVED] Compile Code error: Method or data member not found
    By Help_Required in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-27-2014, 06:04 AM
  2. Compile error method or data member not found
    By sureshpunna in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-14-2014, 09:00 AM
  3. Compile Error Method or data member not found
    By ixelister in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-23-2014, 03:39 PM
  4. [SOLVED] Compile error: Method or data member not found.
    By ndtsteve in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-10-2012, 11:31 AM
  5. Compile Error: Method of data member not found (VBA)
    By vbatech in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 03-14-2012, 05:37 PM
  6. Compile Error:Method or Data Member Not Found
    By loknath in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-29-2012, 04:03 AM
  7. [SOLVED] Compile Error Method or data member not found
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-04-2005, 06:05 PM

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