Help a Novice

ringle

New Member
Joined
May 2, 2002
Messages
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
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Change to this:

ActiveCell.FormulaR1C1 = "Yes"
ActiveCell.Offset(1, 0).Activate

Do While ActiveCell.Rows.Hidden = True
ActiveCell.Offset(1, 0).Activate
Loop


K
 
Upvote 0
What about the following:

ActiveCell.FormulaR1C1 = "Yes"
Do
ActiveCell.Offset(1, 0).Activate
Loop Until ActiveCell.EntireRow.Hidden = False
 
Upvote 0

Forum statistics

Threads
1,214,618
Messages
6,120,544
Members
448,970
Latest member
kennimack

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top