+ Reply to Thread
Results 1 to 4 of 4

Remove Entire subtotal row will be deleted

  1. #1
    NoelH
    Guest

    Remove Entire subtotal row will be deleted

    Hi I have been using a script that removes subtotals from worksheets, then
    updates data, then adds in subotal again. It had been working. I then updated
    the macro script as I required extra columns in for the subtotalling. now I
    receive the message "Entire subtotal row will be deleted." is there a way of
    supressing this message so the macro script will run without monitoring?
    Many THanks in advance for any help. Noel

  2. #2
    crazybass2
    Guest

    RE: Remove Entire subtotal row will be deleted

    Any chance you could post the code?

    "NoelH" wrote:

    > Hi I have been using a script that removes subtotals from worksheets, then
    > updates data, then adds in subotal again. It had been working. I then updated
    > the macro script as I required extra columns in for the subtotalling. now I
    > receive the message "Entire subtotal row will be deleted." is there a way of
    > supressing this message so the macro script will run without monitoring?
    > Many THanks in advance for any help. Noel


  3. #3
    NoelH
    Guest

    RE: Remove Entire subtotal row will be deleted

    Hi
    code is
    Range("A1").Select 'Start of Sheet
    ActiveSheet.Outline.ShowLevels RowLevels:=2 'compress
    ActiveCell.Offset(12, 0).Range("A1").Select 'moves to the first cell
    of the subtotal list
    Selection.End(xlDown).Select 'moves to the end of the list
    Selection.RemoveSubtotal 'removes the subtotal
    Range("a1").Select



    I have noticed that in other files I do not have this error. So now I'm
    think it might be an tool-->options setting
    "crazybass2" wrote:

    > Any chance you could post the code?
    >
    > "NoelH" wrote:
    >
    > > Hi I have been using a script that removes subtotals from worksheets, then
    > > updates data, then adds in subotal again. It had been working. I then updated
    > > the macro script as I required extra columns in for the subtotalling. now I
    > > receive the message "Entire subtotal row will be deleted." is there a way of
    > > supressing this message so the macro script will run without monitoring?
    > > Many THanks in advance for any help. Noel


  4. #4
    NoelH
    Guest

    RE: Remove Entire subtotal row will be deleted

    Hi

    I used the good old "displayalerts" code to stop the message.

    Thanks for your help.
    Noel

    "crazybass2" wrote:

    > Any chance you could post the code?
    >
    > "NoelH" wrote:
    >
    > > Hi I have been using a script that removes subtotals from worksheets, then
    > > updates data, then adds in subotal again. It had been working. I then updated
    > > the macro script as I required extra columns in for the subtotalling. now I
    > > receive the message "Entire subtotal row will be deleted." is there a way of
    > > supressing this message so the macro script will run without monitoring?
    > > Many THanks in advance for any help. Noel


+ 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