+ Reply to Thread
Results 1 to 3 of 3

how to erase the full content of a sheet

  1. #1
    Maileen
    Guest

    how to erase the full content of a sheet

    Hi,

    I would like to know how can i erase the content of all cells from a sheet.

    i tried somethine like sheet(1).range("A1:IV65536").value=""
    but it use 100 % CPU for 20 seconds and more than 180 Mb of memory...

    i'm sure that something else can be done easily and without such resource
    usage.

    Maileen

  2. #2
    Chris Marlow
    Guest

    RE: how to erase the full content of a sheet

    Maileen,

    Sheet(1).Clear - to clear all
    Sheet(1).ClearContents - to preserve formatting.

    Regards,

    Chris.

    --
    Chris Marlow
    MCSD.NET, Microsoft Office XP Master


    "Maileen" wrote:

    > Hi,
    >
    > I would like to know how can i erase the content of all cells from a sheet.
    >
    > i tried somethine like sheet(1).range("A1:IV65536").value=""
    > but it use 100 % CPU for 20 seconds and more than 180 Mb of memory...
    >
    > i'm sure that something else can be done easily and without such resource
    > usage.
    >
    > Maileen


  3. #3
    Norman Jones
    Guest

    Re: how to erase the full content of a sheet

    Hi Maileen,

    Try:

    Sheets(1).Cells.Clear


    ---
    Regards,
    Norman



    "Maileen" <Maileen@discussions.microsoft.com> wrote in message
    news:6A25A520-9160-4507-B59B-E5B1C483762D@microsoft.com...
    > Hi,
    >
    > I would like to know how can i erase the content of all cells from a
    > sheet.
    >
    > i tried somethine like sheet(1).range("A1:IV65536").value=""
    > but it use 100 % CPU for 20 seconds and more than 180 Mb of memory...
    >
    > i'm sure that something else can be done easily and without such resource
    > usage.
    >
    > Maileen




+ 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