Re: How to call or run a NB file in another NB file?
- To: mathgroup at smc.vnet.net
- Subject: [mg90828] Re: How to call or run a NB file in another NB file?
- From: GS <vokaputs at gmail.com>
- Date: Fri, 25 Jul 2008 06:17:43 -0400 (EDT)
- References: <g670o5$s4g$1@smc.vnet.net>
On Jul 23, 3:21 am, "Leo.Chen" <leo.chen... at gmail.com> wrote:
> Hi guys,
>
> I met a problem, in ABC.nb , I need to run XYZ.nb, is there any
> function to execute the XYZ.nb in ABC.nb?
>
> cheers,
>
> leo
Leo,
Here the command that you need to execute from ABC.nb:
nb=NotebookOpen["path_to_file_XYZ\\XYZ.nb",Visible->True];
FrontEndExecute[{FrontEndToken[nb,"EvaluateNotebook"]}];
GS