7
votes

I'm looking for the Excel file where my personal macro workbook is stored. Does anyone know where that file might be on a Windows 7 computer?

5
your question is pretty unclear to me.Plagon
@UGP--it's crystal clear, if you know the name of said workbook is personal.xlsb or if you Googlle Where is your personal macro workbook located?DSlomer64

5 Answers

18
votes

Actually, I found the answer. You can find the file PERSONAL.XLSB by using the code below.

Sub Find_Personal_Macro_Workbook()

    Dim path As String

    path = Application.StartupPath

    MsgBox path

End Sub

Hidden items will need to be selected in your file explorer to see where this is.

Hope this helps anyone who needs to find this file.

15
votes

In this folder: C:\Users\YourUser\AppData\Roaming\Microsoft\Excel\XLSTART

(Hidden Items needs to be selected in your files explorer)

If you don't have a Roaming folder use the Local folder. Rest of the path should be the same.

1
votes

Follow the following steps: 1. Open Excel 2. Unhide Personal Workbook from View->Unhide 3. Press F12 to locate the path of the workbook.

1
votes

Just to build on swridings answer and have it paste that path to a cell so you can copy and paste it into the explorer, see below:

Sub Find_Personal_Macro_Workbook()

    Dim path As String

    path = Application.StartupPath

    Sheets.Add After:=ActiveSheet
    ActiveSheet.Range("$A$1").Value = path

End Sub
0
votes

the personal macros are stored in a .xlsb file, usually PERSONAL.XLSB just use the Search function on your os drive (ie C:) and you will find it!