+ Reply to Thread
Results 1 to 2 of 2

Macro procedures

  1. #1
    Danita
    Guest

    Macro procedures

    I am trying to record a macro which begins with a cell that I click on, and
    the references up the same column 5 rows to complete a calculation. Once
    finished it should move down 5 rows and repeat process. Can't make it not
    reference specific cell. Any suggestions??

  2. #2
    Tom Ogilvy
    Guest

    Re: Macro procedures

    Sub AAA()
    ActiveCell.FormulaR1C1 = "=Sum(R[-1]C:R[-4]C)"
    ActiveCell.Offset(5, 0).Select
    End Sub

    assume you click in E5. and run the macro

    It will put in the formula =Sum(E1:E4), then move to E10. Click again, it
    will put in the sum
    =Sum(E6:E9) then move to E15

    --
    Regards,
    Tom Ogilvy

    "Danita" <Danita@discussions.microsoft.com> wrote in message
    news:0A849237-2BA8-4E43-8A3D-912C537B382F@microsoft.com...
    > I am trying to record a macro which begins with a cell that I click on,

    and
    > the references up the same column 5 rows to complete a calculation. Once
    > finished it should move down 5 rows and repeat process. Can't make it not
    > reference specific cell. Any suggestions??




+ 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