Kreiranje i čuvanje svih makroa u jednoj radnoj svesci

Napomena:  Želimo da vam što pre pružimo najnoviji sadržaj pomoći čim na vašem jeziku. Ova stranica je prevedena automatski i može da sadrži gramatičke greške ili netačnosti. Naš cilj je da ovaj sadržaj bude koristan. Možete li nam na dnu ove stranice saopštiti da li su vam informacije bile od koristi? Ovo je članak na engleskom jeziku za brzu referencu.

If you find yourself recreating the same macros, you can copy those macros to a special workbook called Personal.xlsb that is saved on your computer. Any macros that you store in your personal workbook become available to you whenever you start Excel on that same computer.

This is different than Excel's default behavior, where a macro only works in the workbook that contains it.

To create the personal workbook, you first need to create a macro and store it in the Personal Macro Workbook. Before you get started, make sure that the Developer tab is available in the ribbon in Excel. See Show the Developer tab for more information.

Create and update the Personal Macro workbook

  1. On the Developer tab, in the Code group, click Record Macro.
    Komanda „Zapiši makro“ u grupi „Kôd“ na kartici „Projektovanje“

  2. In the Record Macro dialog box, type a meaningful name for the macro in the Macro name box. Make sure you don’t use any spaces in the name.

  3. In the Store macro in box, select Personal Macro Workbook.
    Dijalog „Zapisivanje makroa“

  4. Kliknite na dugme U redu.

  5. Izvršite radnje koje želite da zapišete.

  6. On the Developer tab, in the Code group, click Stop Recording.
    Komanda „Zaustavi zapisivanje“ u grupi „Kôd“ na kartici „Projektovanje“

  7. Close the workbook.

    Pojavljuje se poruka koja pita da li želite da sačuvate izmene koje ste uneli u radnu svesku ličnih makroa.

  8. Click Save to save the workbook.

Svaki put kada kreirate novi makro i sačuvate ga u ličnoj radnoj svesci ili ažurirate sve makroe koje ona sadrži, bićete upitani da sačuvate ličnu radnu svesku kao što je to bio slučaj prilikom prvog čuvanja.

Sharing macros

If you want to copy macros from the personal workbook to another workbook or vice versa, you can do so in the Visual Basic Editor (VBE). You can start the Visual Basic Editor in Excel by pressing ALT+F11. For more information about copying a macro from one workbook to another, see Copy a macro module to another workbook.

If you want to share your Personal.xlsb file with others, you can copy it to the XLSTART folder on other computers. In Windows 10, Windows 7, and Windows Vista, this workbook is saved in the C:\Users\user name\AppData\Local\Microsoft\Excel\XLStart folder. In Microsoft Windows XP, this workbook is saved in the C:\Documents and Settings\user name\Application Data\Microsoft\Excel\XLStart folder. Workbooks in the XLStart folder are opened automatically whenever Excel starts, and any code you have stored in the personal macro workbook will be listed in the Macro dialog,

If you have one, or just a few macros that you want to share with others, you can send them the workbook that contains them in an email. You can also make the workbook available on a shared network drive, or from a SharePoint Services library.

To create the personal workbook, you first need to create a macro and store it in the Personal Macro Workbook. Before you get started, make sure that the Developer tab is available in the ribbon in Excel. To do that:

On the Excel menu, click Preferences... > Ribbon & Toolbar. In the Customize the Ribbon category, in the Main Tabs list, select the Developer check box, and then click Save.

Create and update the Personal Macro workbook

To create the personal workbook, you first need to create a macro and store it in the Personal Macro Workbook.

  1. Na kartici Projektovanje kliknite na dugme Zapiši makro.

  2. In the Record Macro dialog box, type a meaningful name for the macro in the Macro name box. Make sure you don’t use any spaces in the name.

  3. In the Store macro in box, select Personal Macro Workbook.

  4. Kliknite na dugme U redu.

  5. Izvršite radnje koje želite da zapišete.

  6. Na kartici Projektovanje izaberite stavku Zaustavi snimanje.

  7. Save the changes, then close the workbook, and finally close Excel.

    Pojavljuje se poruka koja pita da li želite da sačuvate izmene koje ste uneli u radnu svesku ličnih makroa.

  8. Click Save to save the workbook.

Any time you create a new macro and save it in your personal workbook, or update any macros already in it, you'll be prompted to save the personal workbook.

Sharing macros

If you want to copy macros from your personal workbook to another workbook or vice versa, you can do so in the Visual Basic Editor (VBE). You can start the Visual Basic Editor in Excel by clicking Visual Basic in the Developer tab. For more information about copying a macro from one workbook to another, see Copy a macro module to another workbook.

If you want to share your Personal.xlsb file with others, you can copy it to the Excel home folder on other computers. That folder for Mac is in the home folder at ~/Library/Containers/com.microsoft.Excel/Data/Library/Application Support/Microsoft/Roaming/Excel/.

If you have one, or just a few macros that you want to share with others, you can send them the workbook that contains them in an email. You can also make the workbook available on a shared network drive, or from a SharePoint Services library.

Potrebna vam je dodatna pomoć?

Možete uvek da postavite pitanje stručnjaku u zajednici Excel Tech Community, dobijete podršku u zajednici Answers community ili predložite novu funkciju ili poboljšanje na sajtu Excel User Voice.

Top of Page

Razvijte Office veštine
Istražite obuku
Prvi nabavite nove funkcije
Pridružite se Office Insider korisnicima

Da li su vam ove informacije koristile?

Hvala vam na povratnim informacijama!

Hvala za povratne informacije! Zvuči da će biti od pomoći ako vas povežemo sa našim agentima Office podrške.

×