• Personal.xls (Excel 97/2002)

    Author
    Topic
    #382976

    Is there any way to create something that will install a macro to the Excel personal.xls spreadsheet without me having to do it manually?

    We have about 20 people who all need this macro and I’d love to say “Just run this” and have it set up automatically.

    Thanks!

    Viewing 1 reply thread
    Author
    Replies
    • #651361

      Place the macro in a Module and export that module to a path available to all 20 users. You can do this from the project explorer in the VBE by right clicking on the module and selecting export.

      You could than save a workbook with the following code to the same location.

      Sub Auto_Open
      Workbooks(“Personal.xls”).VBProject.VBComponents.Import (Thisworkbook.path & “ModuleName.bas”)
      End Sub

      where ModuleName.bas is the name of the module you exported.

      This assumes that you you users have Personal.xls open and unprotected. When your users open this workbook, their Personal.xls should be updated with the new code.

      Andrew C

    • #651486

      Hi,

      Take a look at this post.

    Viewing 1 reply thread
    Reply To: Personal.xls (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: