Hi all,
I'm using SendKeys("{DOWN}") to make Excel select the next visible cell on a spreadsheet. When I run the code from a custom menu button, it works fine. However, ff I run the code by pressing a command button on a userform, the active cell does not move down one cell. I have tried specifying the object in a number of ways, including WINDOWS("Filename.xls").application.sendkeys etc, but the command never reaches the cell unless the code is run from a menu button.
Can anyone tell me why this is and how I tell Excel to send the DOWN keystroke to the userform?
Alternatively, can anyone tell me an easy way to get the active cell to jump down to the next visible row? The sub first sets an autofilter, then selects the header cell, then tries to select the next visible cell down. Header row will always be, say, row 1, but the next visible row may be 2, or 10, or 17 etc, depending on the autofilter setting.
Any help appreciated!
Bookmarks