+ Reply to Thread
Results 1 to 4 of 4

ActiveCell:move to another cell within a subtotal report within a macro

  1. #1
    Dave Peterson
    Guest

    ActiveCell:move to another cell within a subtotal report within a macro

    You could just look to see if the row is hidden:

    Do
    ActiveCell.Offset(1, 0).Select
    If ActiveCell.EntireRow.Hidden = False Then
    Exit Do
    End If
    Loop



    NoelH wrote:
    >
    > Hi
    >
    > I have created a subtotal grouping within the sheet. I have then condensed
    > the sheet, thus only showing the subtotal heading and result. This works fine
    > within a macro that was created for the purpose.
    >
    > Now I wish to move to the next visable cell and delete the conents. This
    > works fine via the keyboard/mouse. I then down arrow to the next visibale
    > cell and clear the contents. Down once again and repeat. However I would like
    > it as a macro. When I look at the macro the absolute cell is in the range ().
    > select. This will not work as the sheet of data changes at the subtotal will
    > not always appear for the same location.
    >
    > Is there a way of slecting the next visable cell in the subtotal sheet, and
    > what method is this?
    >
    > Mnay thanks in advance for any help.
    >
    > Regards Noel


    --

    Dave Peterson

  2. #2
    Dave Peterson
    Guest

    re: ActiveCell:move to another cell within a subtotal report within a macro

    You could just look to see if the row is hidden:

    Do
    ActiveCell.Offset(1, 0).Select
    If ActiveCell.EntireRow.Hidden = False Then
    Exit Do
    End If
    Loop



    NoelH wrote:
    >
    > Hi
    >
    > I have created a subtotal grouping within the sheet. I have then condensed
    > the sheet, thus only showing the subtotal heading and result. This works fine
    > within a macro that was created for the purpose.
    >
    > Now I wish to move to the next visable cell and delete the conents. This
    > works fine via the keyboard/mouse. I then down arrow to the next visibale
    > cell and clear the contents. Down once again and repeat. However I would like
    > it as a macro. When I look at the macro the absolute cell is in the range ().
    > select. This will not work as the sheet of data changes at the subtotal will
    > not always appear for the same location.
    >
    > Is there a way of slecting the next visable cell in the subtotal sheet, and
    > what method is this?
    >
    > Mnay thanks in advance for any help.
    >
    > Regards Noel


    --

    Dave Peterson

  3. #3
    NoelH
    Guest

    move to another cell within a subtotal report within a macro

    Hi

    I have created a subtotal grouping within the sheet. I have then condensed
    the sheet, thus only showing the subtotal heading and result. This works fine
    within a macro that was created for the purpose.

    Now I wish to move to the next visable cell and delete the conents. This
    works fine via the keyboard/mouse. I then down arrow to the next visibale
    cell and clear the contents. Down once again and repeat. However I would like
    it as a macro. When I look at the macro the absolute cell is in the range ().
    select. This will not work as the sheet of data changes at the subtotal will
    not always appear for the same location.

    Is there a way of slecting the next visable cell in the subtotal sheet, and
    what method is this?


    Mnay thanks in advance for any help.

    Regards Noel

  4. #4
    Dave Peterson
    Guest

    re: ActiveCell:move to another cell within a subtotal report within a macro

    You could just look to see if the row is hidden:

    Do
    ActiveCell.Offset(1, 0).Select
    If ActiveCell.EntireRow.Hidden = False Then
    Exit Do
    End If
    Loop



    NoelH wrote:
    >
    > Hi
    >
    > I have created a subtotal grouping within the sheet. I have then condensed
    > the sheet, thus only showing the subtotal heading and result. This works fine
    > within a macro that was created for the purpose.
    >
    > Now I wish to move to the next visable cell and delete the conents. This
    > works fine via the keyboard/mouse. I then down arrow to the next visibale
    > cell and clear the contents. Down once again and repeat. However I would like
    > it as a macro. When I look at the macro the absolute cell is in the range ().
    > select. This will not work as the sheet of data changes at the subtotal will
    > not always appear for the same location.
    >
    > Is there a way of slecting the next visable cell in the subtotal sheet, and
    > what method is this?
    >
    > Mnay thanks in advance for any help.
    >
    > Regards Noel


    --

    Dave Peterson

+ 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