Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
NoelH
 
Posts: n/a
Default 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
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Data Validation Cell - Move to UserForm thom hoyle Excel Worksheet Functions 0 April 28th 05 12:23 AM
must press enter 2x to move cell focus Lynn Excel Discussion (Misc queries) 0 March 18th 05 06:05 PM
How do I move data from one cell and add to another? wntw Excel Worksheet Functions 8 March 10th 05 01:28 AM
How to move cell contents Stephane Excel Discussion (Misc queries) 6 January 13th 05 12:49 AM


All times are GMT +1. The time now is 12:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"