Results 1 to 5 of 5

Thread: Just tesitng, checkin out and messin with the BBCodes and stuff

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    VBAX Regular DocAElstein's Avatar
    Joined
    Oct 2023
    Location
    Hof, Germany
    Posts
    14
    Location

    An answer I could not get to post in the main Excel sub forum

    Hi
    Another possibility.

    Download both files, - put them anywhere as long as they are in the same place.
    Just open FileToRunMacroInOtherFile.xls ( leave OtherFileWithSubMakeFinalVendorsInIt.xls closed )

    Now run this macro which is in FileToRunMacroInOtherFile.xls
     Sub AppRunSubMakeFinalVendorsInOtherFile() ' 
     Application.Run macro:="'" & ThisWorkbook.Path & "\" & "OtherFileWithSubMakeFinalVendorsInIt.xls" & "'" & "!'Modul1.MakeFinalVendors'"
    End Sub 

    That should cause the other file to open, and the macro in it , Sub MakeFinalVendors() , should run

    ( If you had both files open, the effect would be the same – running Sub AppRunSubMakeFinalVendorsInOtherFile() should make Sub MakeFinalVendors() run )

    Alan
    Attached Files Attached Files
    Last edited by DocAElstein; 07-30-2025 at 01:57 PM.

Posting Permissions

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