The code is in the template file, but in a separate part of the file
that the search mechanism doesn't look in.
If you open a template in a hex editor that can show the ASCII/Unicode
equivalents, you'll find your comments and variable names mixed in
with lots of binary data representing all of the operators, built-in
functions, and other stuff about 2/3 of the way down the file. The VBA
editor interprets this on the fly when you open a module.
If you want a searchable copy of your macros, right-click each module
and choose the Export File command. The code will be put into a
plain-text file with a .bas extension. Any userforms will also export
a .frm file containing a binary representation of the controls and
their properties.
--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.