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

MathGroup Archive 2010

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

Search the Archive

Re: How to remove cells with a style?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg111408] Re: How to remove cells with a style?
  • From: David Reiss <dbreiss at gmail.com>
  • Date: Sat, 31 Jul 2010 02:40:58 -0400 (EDT)
  • References: <i2rm3l$r7t$1@smc.vnet.net>

Here's an example of how to do this programmatically where nb is the
NOtebookObject of the ontebook in question:

NotebookFind[nb,"Text", All, CellStyle];
NotebookDelete[nb]

--David

On Jul 29, 6:45 am, Murray Eisenberg <mur... at math.umass.edu> wrote:
> For a style of any kind (Text, Input, whatever): Alt-click one of the
> cells and that will select all of the same style. Then delete.
>
> I couldn't find that shortcut indicated in the Documentation Center. Did
> I miss it?
>
> On 7/28/2010 7:25 AM, slawek wrote:
>
> > How to remove all cells with "text" style, i.e. strip all comments from a
> > Mathematica notebook?
>
> > TIA
> > slawek
>
> --
> Murray Eisenberg                     mur... at math.umass.edu
> Mathematics & Statistics Dept.
> Lederle Graduate Research Tower      phone 413 549-1020 (H)
> University of Massachusetts                413 545-2859 (W)
> 710 North Pleasant Street            fax   413 545-1801
> Amherst, MA 01003-9305



  • Prev by Date: Re: de-nesting complex nested lists
  • Next by Date: Re: A problem with Thread[]
  • Previous by thread: Re: How to remove cells with a style?
  • Next by thread: Re: Substiuting variables within an integral