Results 1 to 12 of 12

Thread: Problem using Oorang's worksheet compare on a Mac

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Updated code post with non-enum message box syntax. Just as a side note, if one of you mac types wouldn't mind, in the VBE, go to Tools>References and tell me what dll is referenced for the entry that says "Visual Basic for Applications". (Just out of curiosity.)
    Cordially,
    Aaron



    Keep Our Board Clean!
    • Please Mark your thread "Solved" if you get an acceptable response (under thread tools).
    • Enclose your code in VBA tags then it will be formatted as per the VBIDE to improve readability.

  2. #2
    VBAX Expert
    Joined
    Aug 2007
    Location
    Windermere, FL, a 'burb in the greater Orlando metro area.
    Posts
    567
    Location
    Aaron,

    What I found is:
    ORLMcKenzieR-M:/Applications/Microsoft Office 2004/Office ronald$ ls -l "Visual Basic for Applications"
    -rwxrwxr-x 1 admin admin 5715840 Feb 12 2006 Visual Basic for Applications

    HTH,
    Ron
    Windermere, FL

  3. #3
    I think that is a partial path. Try doing this:
    1. Set a reference to "Microsoft Visual Basic for Applications Extensibility"
    2. Go to tools>macro>security and check "Trust Access to Visual Basic Project"
    3. Run the following:

    Public Sub PrintRefs()
        Dim r As VBIDE.Reference
        For Each r In Excel.Application.VBE.ActiveVBProject.References
            Debug.Print r.Name & vbNewLine & r.FullPath & vbNewLine
        Next
    End Sub
    Last edited by Aussiebear; 04-14-2023 at 02:21 AM. Reason: Adjusted the code tags
    Cordially,
    Aaron



    Keep Our Board Clean!
    • Please Mark your thread "Solved" if you get an acceptable response (under thread tools).
    • Enclose your code in VBA tags then it will be formatted as per the VBIDE to improve readability.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •