+ Reply to Thread
Results 1 to 5 of 5

Copying Macro Code into the Personal Macro Workbook

Hybrid View

  1. #1
    Registered User
    Join Date
    11-18-2013
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007
    Posts
    14

    Copying Macro Code into the Personal Macro Workbook

    Good morning,

    I have a macro that was initially created in a specific Workbook. I would now like to recreate it (or basically copy the code) in the Personal macro Workbook.

    Is this an easy process?

    Many thanks,

    Regards,

    Martin

  2. #2
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Copying Macro Code into the Personal Macro Workbook

    Hi Martin
    When you first create a macro you have the option to store it in the particular workbook you are working on or make it available to all workbooks. If it is current available only to a specific workbook you can copy it to a new workbook and make it available to all workbooks.
    Hope this helps.
    Tony

  3. #3
    Registered User
    Join Date
    11-18-2013
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Copying Macro Code into the Personal Macro Workbook

    Hi Tony,

    That's great!

    Many thanks,

    Martin

  4. #4
    Forum Contributor wakeupcall's Avatar
    Join Date
    02-29-2012
    Location
    Sofia, Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    155

    Re: Copying Macro Code into the Personal Macro Workbook

    Hi Martin,

    it depends how the code was written and whether it works with different worksheets within the workbook and what it does
    Generally, copy and paste the code in a module in your VBAPproject(Personal) and replace any bits of ThisWorkbook in it (if such exist) with ActiveWorkbook

    Howver, unless the code is very general and applicable to variety of workooks, I wouldn't move it to Personal
    Liked the answer given? click * to say so

  5. #5
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Copying Macro Code into the Personal Macro Workbook

    Yes - you just copy and paste the macro into your personal.xls workbook...

    See here for more:
    http://office.microsoft.com/en-001/e...102174076.aspx

+ 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. Macro in Excel 2010 - can't open personal workbook with the VBA code to correct
    By Sparkmeister in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-12-2013, 03:34 PM
  2. Perform macro "on open" specific file- store macro in Personal Macro Workbook?
    By thompssc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-17-2012, 12:38 PM
  3. [SOLVED] Will using a "personal macro workbook" slow down my other VBA code
    By Stacymm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-24-2005, 11:05 AM
  4. Macro runs in source , but not when in Personal Macro Workbook
    By Darin Kramer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-13-2005, 12:05 PM
  5. [SOLVED] Personal macro workbook and personal.xls
    By John Kilkenny in forum Excel General
    Replies: 1
    Last Post: 06-14-2005, 05:05 PM

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