![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 1
|
Can someone please help a novice?
I have a button on my spreadsheet that when clicked activates the following macro:- ActiveCell.FormulaR1C1 = "Yes" ActiveCell.Offset(1, 0).Activate Simple eh? The "yes" is inserted into a filtered list but the cursor advances to the next cell which may be hidden. I want the next active cell to be the next visible cell. I've seen some posts on this subject but can't work out the exact code that I should use. Can someone please spare 30 secs to put me out of my misery? Thanks |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Apr 2002
Location: Greenwood, SC
Posts: 677
|
Change to this:
ActiveCell.FormulaR1C1 = "Yes" ActiveCell.Offset(1, 0).Activate Do While ActiveCell.Rows.Hidden = True ActiveCell.Offset(1, 0).Activate Loop K |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
|
What about the following:
ActiveCell.FormulaR1C1 = "Yes" Do ActiveCell.Offset(1, 0).Activate Loop Until ActiveCell.EntireRow.Hidden = False
__________________
Kind regards, Al Chara |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|