Excel User Group
Microsoft Excel blogs, forums, files. Read, ask questions, provide answers.

macros

Latest post Sun, Mar 30 2008 8:48 AM by blue_sphinx. 2 replies.
  • Fri, Mar 28 2008 1:29 PM

    • jerrydixon
    • Top 500 Contributor
    • Joined on Fri, Mar 28 2008
    • Posts 1
    • Points 21

    macros

    What is the macro command to go down to the next line?

    Filed under:
    • Post Points: 21
  • Fri, Mar 28 2008 2:18 PM In reply to

    • Nick Hodge
    • Top 10 Contributor
    • Joined on Sun, Dec 23 2007
    • Southampton
    • Posts 336
    • Points 5,771
    • MVP

    Jerry

    There are several ways

    ActiveCell.Offset(1,0).Select

    Is just one

    Regards
    Nick Hodge
    Microsoft MVP, Excel
    Southampton, UK

    Filed under:
    • Post Points: 21
  • Sun, Mar 30 2008 8:48 AM In reply to

    • blue_sphinx
    • Top 25 Contributor
    • Joined on Thu, Mar 27 2008
    • Phils/UAE
    • Posts 26
    • Points 434

    Hi All,

     There is something that pop-out in my mind in his question...

    What if I want to insert row with a requirement that below the each subtotal is inserted 2 rows without identifying the location of the row.

    Example:

    Range("A5:S63").Select
        Selection.Subtotal GroupBy:=5, Function:=xlSum, TotalList:=Array(8, 9, 10, 11, _
            12, 13, 14, 15, 16, 17, 18, 19), Replace:=True, PageBreaks:= _
            False, SummaryBelowData:=True

    There is subtotal as reference for Group 5. How can I insert 2 row for each subtotal?

    Does it make sense?

    Big Thanks.

    Blue

    • Post Points: 5
Page 1 of 1 (3 items) | RSS
Copyright Excel User Group and the relevant contributors, 2008. All Trade Marks acknowledged. This site is a peer-to-peer site and NOT affiliated in any way to Microsoft Corp. All rights reserved.