Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I would like to use something like activeCell.Offset(1,0).Select when autofilter is activated. How do I code this ? Many thanks. Francois |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Maybe just looping through the cells??
Option Explicit Sub testme() Dim myCell As Range Set myCell = ActiveCell Do Set myCell = myCell.Offset(1, 0) If Intersect(myCell, ActiveSheet.AutoFilter.Range) Is Nothing Then Set myCell = Nothing Exit Do End If If myCell.EntireRow.Hidden = True Then 'keep looking Else Exit Do End If Loop If myCell Is Nothing Then MsgBox "No next cell" Else MsgBox myCell.Value & vbLf & myCell.Address myCell.Select End If End Sub François wrote: Hello, I would like to use something like activeCell.Offset(1,0).Select when autofilter is activated. How do I code this ? Many thanks. Francois -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I need url links to be activated in my cells | Excel Discussion (Misc queries) | |||
MACRO ACTIVATED AYTOMATICALLY | Excel Discussion (Misc queries) | |||
undo is not activated | Excel Discussion (Misc queries) | |||
MACRO ACTIVATED EVERY 5 SECONDS | Excel Discussion (Misc queries) | |||
Recalculating Excel Sheets with activated autofilter | Excel Programming |