Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default how to go the the next row when autofilter is activated

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default how to go the the next row when autofilter is activated

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
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
I need url links to be activated in my cells seand95 Excel Discussion (Misc queries) 1 September 18th 11 12:10 AM
MACRO ACTIVATED AYTOMATICALLY Spiros Excel Discussion (Misc queries) 0 June 12th 08 07:25 AM
undo is not activated Hans Excel Discussion (Misc queries) 2 October 22nd 07 04:35 PM
MACRO ACTIVATED EVERY 5 SECONDS CC Excel Discussion (Misc queries) 1 May 4th 06 03:02 PM
Recalculating Excel Sheets with activated autofilter BVA Excel Programming 1 March 5th 04 10:29 AM


All times are GMT +1. The time now is 06:44 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"