Consulting

Results 1 to 2 of 2

Thread: Solved: Subtotal header row

  1. #1

    Solved: Subtotal header row

    What does this code need to avoid getting the column label question window when the macro runs? Row 7 is always the label.[vba]Rows("7:500").Select
    Range("a8").Activate
    Selection.Subtotal GroupBy:=8, Function:=xlSum, TotalList:=Array(11, 13, _
    15), Replace:=True, PageBreaks:=False, SummaryBelowData:=False[/vba]
    I used the recorder to get this.

  2. #2
    Found the answer after doing some more searching. Used Application.DisplayAlerts = False before and True after that part of the code.

Posting Permissions

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