+ Reply to Thread
Results 1 to 3 of 3

How do I move ot next row in macro

  1. #1
    JamesL
    Guest

    How do I move ot next row in macro

    I have an excel macro where I need to tell the selection to move down one
    row from the currently select row.

    What is the correct syntax to do that?

    James Lysaght



  2. #2
    Norman Jones
    Guest

    Re: How do I move ot next row in macro

    "JamesL" <[email protected]> wrote in message
    news:[email protected]...
    >I have an excel macro where I need to tell the selection to move down one
    >row from the currently select row.
    >
    > What is the correct syntax to do that?



    Hi James,

    ActiveCell(2, 1).Select

    However, it is rarely necessary (and is usually inefficient) to make
    physical selections. So, instead of selecting, you might do something like:

    With ActiveCell(2, 1)
    If .Value > 10 Then
    .Interior.ColorIndex = 36
    Else
    .Interior.ColorIndex = 5
    End If
    End With

    ---
    Regards,
    Norman





  3. #3
    Earl Kiosterud
    Guest

    Re: How do I move ot next row in macro

    James,

    ActiveCell.Offset(1,0).Select

    --
    Earl Kiosterud
    mvpearl omitthisword at verizon period net
    -------------------------------------------

    "JamesL" <[email protected]> wrote in message
    news:[email protected]...
    >I have an excel macro where I need to tell the selection to move down one
    >row from the currently select row.
    >
    > What is the correct syntax to do that?
    >
    > James Lysaght
    >




+ 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