+ Reply to Thread
Results 1 to 4 of 4

Run PERSONAL.XLSB macro when any Excel file is opened

  1. #1
    Forum Contributor
    Join Date
    01-30-2014
    Location
    England
    MS-Off Ver
    MS Office 2010, 2007, 2003
    Posts
    149

    Run PERSONAL.XLSB macro when any Excel file is opened

    Hi all

    Hoping this is pretty simple and I'm just being an idiot.
    I need to store a macro in PERSONAL.XLSB but I need it to run when any excel file is opened (as it checks what the file contains, then does a lot of work for me.)

    I've seen other people have done this, but I can't get it to work for some reason. Any help is appreciated!

    Thank you

    Aaron
    Last edited by Aaron092; 09-23-2014 at 04:33 AM.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Run PERSONAL.XLSB macro when any Excel file is opened

    In the ThisWorkbook module of your Personal.xlsb, put this code, changing the blue part to match your macro name:
    Please Login or Register  to view this content.
    Then save the workbook and restart Excel.
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    01-30-2014
    Location
    England
    MS-Off Ver
    MS Office 2010, 2007, 2003
    Posts
    149

    Re: Run PERSONAL.XLSB macro when any Excel file is opened

    Hi romperstomper

    That works perfectly!! Exactly what I needed - thank you

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Run PERSONAL.XLSB macro when any Excel file is opened

    Glad to help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Close Excel event to use with personal.xlsb file
    By richard.wilson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2014, 05:28 PM
  2. cannot run macro if personal.xlsb is hidden
    By illusionek in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-07-2014, 08:16 AM
  3. Replies: 0
    Last Post: 10-30-2012, 12:29 PM
  4. Automatically run Personal.xls when a particular Excel file is opened
    By GCW esq in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-29-2012, 12:07 AM
  5. Macros in Personal.xlsb not available when Excel is opened from another app
    By Muskett32 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2012, 02:57 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1