Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Help a Novice

  1. #1
    New Member
    Join Date
    May 2002
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #2
    Board Regular
    Join Date
    Apr 2002
    Location
    Greenwood, SC
    Posts
    677
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #3
    MrExcel MVP Al Chara's Avatar
    Join Date
    Feb 2002
    Location
    Newark, Delaware
    Posts
    1,701
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    What about the following:

    ActiveCell.FormulaR1C1 = "Yes"
    Do
    ActiveCell.Offset(1, 0).Activate
    Loop Until ActiveCell.EntireRow.Hidden = False
    Best regards,
    Allan Chara
    http://www.mrspreadsheets.com

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •