+ Reply to Thread
Results 1 to 4 of 4

How to save code under VBAProject(PERSONAL.XLSB) that applies to any workbook

  1. #1
    Registered User
    Join Date
    02-25-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    43

    How to save code under VBAProject(PERSONAL.XLSB) that applies to any workbook

    Even though I'm saving a code in a new module under VBAProject(PERSONAL.XLSB), it doesn't appear when i try to use it in another workbook. Yes, i'm trying with macro enabled workbooks but it doesn't work out. The code is as follows:
    Please Login or Register  to view this content.
    Last edited by bubai; 04-28-2013 at 08:17 AM.

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: How to save code under VBAProject(PERSONAL.XLSB) that applies to any workbook

    I dont know what the problem is.

    Do 1 thing, a shortcut if you like. Start recording a Macro using the macro recorder and save it in the Personal Macro Workbook (Just a Dummy Step or 2)

    Now enter VBA and open that newly recorded code, delete the code except the Macro name, Copy and Paste your code, and then change the Macro name if you want.


    Thank You,

    Deep Dave
    Last edited by NeedForExcel; 04-28-2013 at 07:42 AM.
    Cheers!
    Deep Dave

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: How to save code under VBAProject(PERSONAL.XLSB) that applies to any workbook

    Hi, bubai,

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code in [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here


    The function you have will be listed in the Function Wizard as UserDefined.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: How to save code under VBAProject(PERSONAL.XLSB) that applies to any workbook

    Oops.. Its a Function not a Sub.. Sorry missed it..

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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