Results 1 to 12 of 12

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

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    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
  •