Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Moving the Cell Selection Within AutoFilter

In my program, when I enable AutoFilter, I want to select cell E4 and move
down 2 cells and enter text.

I tried using
ActiveCell.Offset(2, 0).Activate

but that just places the cell in E6. I want to be able to space down 2
cellls below E4 no matter what the row number is. How can I do this? Thx
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Moving the Cell Selection Within AutoFilter

Sub MoveDown2()
Dim cnt as Long, i as Long
cnt = 0
i = activecell.row
do while cnt < 2
i = i + 1
if rows(i).Hidden = False then cnt = cnt + 1
Loop
cells(i,activecell.column).Select
End Sub
--
Regards,
Tom Ogilvy


"ajvasel" wrote:

In my program, when I enable AutoFilter, I want to select cell E4 and move
down 2 cells and enter text.

I tried using
ActiveCell.Offset(2, 0).Activate

but that just places the cell in E6. I want to be able to space down 2
cellls below E4 no matter what the row number is. How can I do this? Thx

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Moving the Cell Selection Within AutoFilter

Thanks Tom - worked perfectly!
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
Format of autofilter selection list. LJezerni Excel Discussion (Misc queries) 1 April 12th 07 04:54 PM
Paste into autofilter selection! HenrikB Excel Worksheet Functions 1 September 21st 06 09:29 AM
Moving a selection... [email protected] Excel Discussion (Misc queries) 3 July 20th 06 04:50 PM
Selection.AutoFilter Field:=1 MBlake[_2_] Excel Programming 7 August 25th 05 08:03 PM
autofilter/cell selection problems Jordan Excel Programming 3 July 20th 05 04:16 PM


All times are GMT +1. The time now is 06:18 AM.

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

About Us

"It's about Microsoft Excel"