+ Reply to Thread
Results 1 to 11 of 11

Clear contents but leave formulas in Excel

Hybrid View

Guest Clear contents but leave... 04-23-2006, 06:00 AM
Guest Re: Clear contents but leave... 04-23-2006, 06:35 AM
Guest Re: Clear contents but leave... 04-23-2006, 06:55 AM
Guest Re: Clear contents but leave... 04-23-2006, 09:15 PM
Guest Re: Clear contents but leave... 04-29-2006, 11:40 AM
Guest Re: Clear contents but leave... 04-30-2006, 04:20 PM
Guest Re: Clear contents but leave... 06-16-2006, 05:00 PM
Guest Re: Clear contents but leave... 06-16-2006, 11:15 PM
Guest Re: Clear contents but leave... 06-12-2006, 08:30 PM
Guest Re: Clear contents but leave... 06-12-2006, 10:30 PM
Guest Re: Clear contents but leave... 06-13-2006, 01:30 PM
  1. #1
    Max
    Guest

    Re: Clear contents but leave formulas in Excel

    The earlier suggestion was focused
    more on your subject line:

    Re: Clear contents but leave formulas in Excel

    than anything else <g>
    --
    Max
    Singapore
    http://savefile.com/projects/236895
    xdemechanik
    ---



  2. #2
    David McRitchie
    Guest

    Re: Clear contents but leave formulas in Excel

    Hi ojchippy and Max,

    See
    Insert a Row using a Macro to maintain formulas
    http://www.mvps.org/dmcritchie/excel/insrtrow.htm

    The code in the macro that clears the text constants in the inserted row(s) is
    Selection.Offset(1).Resize(vRows).EntireRow. _
    SpecialCells(xlConstants).ClearContents

    Manually you can cllear the constants in a selection with
    (Make a selection)
    Edit, Goto (Ctrl+G), Special (button), Constants (text, numbers)
    Edit, Clear, Contents
    ---
    HTH,
    David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
    My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
    Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

    "Max" <demechanik@yahoo.com> wrote in message news:eLM%23VuzZGHA.1220@TK2MSFTNGP02.phx.gbl...
    > The earlier suggestion was focused
    > more on your subject line:
    >
    > Re: Clear contents but leave formulas in Excel
    >
    > than anything else <g>
    > --
    > Max
    > Singapore
    > http://savefile.com/projects/236895
    > xdemechanik
    > ---
    >
    >




  3. #3
    Max
    Guest

    Re: Clear contents but leave formulas in Excel

    Thanks, David !
    --
    Max
    Singapore
    http://savefile.com/projects/236895
    xdemechanik
    ---


  4. #4
    John
    Guest

    Re: Clear contents but leave formulas in Excel

    David McRitchie wrote:

    >
    > Manually you can cllear the constants in a selection with
    > (Make a selection)
    > Edit, Goto (Ctrl+G), Special (button), Constants (text, numbers)
    > Edit, Clear, Contents
    > ---
    > HTH,
    > David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
    > My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
    > Search Page: http://www.mvps.org/dmcritchie/excel/search.htm
    >


    I made a macro of this:

    Selection.SpecialCells(xlCellTypeConstants, 23).Select
    Selection.ClearContents

    I'd like to get it as a button on the page.

    However... when using this if your selection has only cells with data
    AND formulas in them it errors out. I guess it would have to because the
    sheet wants to fill the formula.

    However it would be nice to have an error catcher that simply does
    nothing when that happens instead of screwing up the macro. I can reset
    the macro but I want this usable by other users.

    Any help with that? I don't know excell basic well enough but it would
    be an:

    on error goto (Or something like that)

    Thanks

    John

  5. #5
    David McRitchie
    Guest

    Re: Clear contents but leave formulas in Excel

    If you look at the page I referenced
    http://www.mvps.org/dmcritchie/excel/insrtrow.htm
    and look for the button used with the macro, you would
    see a reference to
    http://www.mvps.org/dmcritchie/excel/toolbars.htm
    this is a button on the toolbars, or in a menu, but the idea is
    if you can make things generic, which you did, then you can
    use it anywhere.

    --
    ---
    HTH,
    David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
    My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
    Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

    "John" <JOhn6328@mchsi.com> wrote in message news:eCukseYkGHA.3816@TK2MSFTNGP02.phx.gbl...
    > David McRitchie wrote:
    >
    > >
    > > Manually you can cllear the constants in a selection with
    > > (Make a selection)
    > > Edit, Goto (Ctrl+G), Special (button), Constants (text, numbers)
    > > Edit, Clear, Contents
    > > ---
    > > HTH,
    > > David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
    > > My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
    > > Search Page: http://www.mvps.org/dmcritchie/excel/search.htm
    > >

    >
    > I made a macro of this:
    >
    > Selection.SpecialCells(xlCellTypeConstants, 23).Select
    > Selection.ClearContents
    >
    > I'd like to get it as a button on the page.
    >
    > However... when using this if your selection has only cells with data
    > AND formulas in them it errors out. I guess it would have to because the
    > sheet wants to fill the formula.
    >
    > However it would be nice to have an error catcher that simply does
    > nothing when that happens instead of screwing up the macro. I can reset
    > the macro but I want this usable by other users.
    >
    > Any help with that? I don't know excell basic well enough but it would
    > be an:
    >
    > on error goto (Or something like that)
    >
    > Thanks
    >
    > John




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1