Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

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


  • Prev by Date: Cos[a x - b] displayed as Cos[b - a x]
  • Next by Date: Re: Installing Personal Package Documentation not showing up
  • Previous by thread: Re: How to call or run a NB file in another NB file?
  • Next by thread: Re: How to call or run a NB file in another NB file?