This macro is part of the bibMacros package but can be used without it.
This macro extracts all \cited (or \nocited) bibliography entries and puts them into a separate file called %P\%N-minimal.bib.
You can use this e.g. if you want to distribute your files but don't want to include your complete bibliography database.
The macro looks into the .aux file to determine which entries you've cited (this explains its name). So you have to run LaTEX on your main file before you can use this macro.
It can also manage multiple bibliography databases and subdocuments.
Put the macro in %b\Macros\LaTeX\, and assign a shortcut to it if you want.
Or download the bibMacros package which includes all BibTEX related macros (and some more).
Macro contributed by Robert <w.m.lgmx.net>