Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Current activecell is A13 and I'm using autofilter. What the VBA command to
go to the next VISIBLE cell below - i.e. A21 ? Regards, Rasmus |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Rasmus,
I think you'd need to loop downwards, checking the Hidden property of the row. Dim Rng As Range Set Rng = ActiveCell Do Set Rng = Rng(2, 1) Loop Until Rng.EntireRow.Hidden = False -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Rasmus" wrote in message t.cable.rogers.com... Current activecell is A13 and I'm using autofilter. What the VBA command to go to the next VISIBLE cell below - i.e. A21 ? Regards, Rasmus |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Rasmus wrote:
Current activecell is A13 and I'm using autofilter. What the VBA command to go to the next VISIBLE cell below - i.e. A21 ? Hi, Rasmus. Try this ...... ActiveCell.Offset(1, 0).Activate Do While ActiveCell.EntireRow.Hidden = True ActiveCell.Offset(1, 0).Activate Loop ...... |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim rng as Range
set rng = Range("A13") do set rng = rng.offset(1,0) Loop while rng.entireRow.Hidden = True rng.Select -- Regards, Tom Ogilvy "Rasmus" wrote in message t.cable.rogers.com... Current activecell is A13 and I'm using autofilter. What the VBA command to go to the next VISIBLE cell below - i.e. A21 ? Regards, Rasmus |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this:
Dim rng As Range Dim i As Long For Each rng In Range(ActiveCell, Cells(Rows.Count, ActiveCell.Column)).SpecialCells(Type:=12, Value:=23) If i 0 Then rng.Select Exit For End If i = i + 1 Next -- Soo Cheon Jheong http://excel.hompy.com |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
why not just
Range(ActiveCell.Offset(1,0), _ Cells(Rows.Count,ActiveCell.Column)). _ SpecialCells(Type:=12, Value:=23)(1).Select Add error checking of course -- Regards, Tom Ogilvy "Soo Cheon Jheong" wrote in message ... Try this: Dim rng As Range Dim i As Long For Each rng In Range(ActiveCell, Cells(Rows.Count, ActiveCell.Column)).SpecialCells(Type:=12, Value:=23) If i 0 Then rng.Select Exit For End If i = i + 1 Next -- Soo Cheon Jheong http://excel.hompy.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Goto Cell With Today's Or Other Date | Excel Worksheet Functions | |||
find the last Fred and goto cell | Excel Worksheet Functions | |||
Goto a specific cell in a macro | Excel Discussion (Misc queries) | |||
goto a particular cell | Excel Programming | |||
Goto next empty cell in a range | Excel Programming |