• Run a macron in a workbook that is NOT open (Excel 97/2002)

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Run a macron in a workbook that is NOT open (Excel 97/2002)

    Author
    Topic
    #382982

    Is it possible to run a macro that is saved in a workbook that you do NOT have open?

    Viewing 1 reply thread
    Author
    Replies
    • #651403

      No way that I know of.

    • #651483

      Depends on what you want. You can call a macro in another workbook, but then Excel will load the workbook when you do the call.

      • #651533

        I know how to load the workbook with the macro in it, but I don’t want the sheets in that WB to be seen.

        I just want it in the background.

        • #651537

          Try something like this:

          Dim wbk As Workbook
          Application.ScreenUpdating = False
          Set wbk = Workbooks.Open(“C:ExcelTest.xls”)
          ActiveWindow.Visible = False
          Application.ScreenUpdating = True

          Of course, you must substitute the appropriate path and file name.

    Viewing 1 reply thread
    Reply To: Run a macron in a workbook that is NOT open (Excel 97/2002)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: