I figured out:
Sendkeys was going to the wrong place - that cell in the top right - and sending an "Enter", which was bringing up "Find Format"
Here's the current status:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Sub Find_By_Columns(control As IRibbonControl)
' Use this macro to reduce the number of clicks to bring up search "By Columns"
' First, run this "find", just to set the default parameters of the dialog:
Cells.Find what:="", _
After:=ActiveCell, _
LookIn:=xlFormulas, _
LookAt:=xlPart, _
SearchOrder:=xlByColumns, _
SearchDirection:=xlNext, _
MatchCase:=False, _
SearchFormat:=False
' Now, run the dialog:
Application.CommandBars("Edit").Controls("Find...").Execute
' For some reason, bringing this up in a macro doesn't give you a blinking cursor in "Find what"
' You can just start typing, though, it's working like it normally does.
' Alternatively, use Sendkeys to activate it - The simplest way might be to send a "Del"
'
https://msdn.microsoft.com/en-us/library/office/aa202943(v=office.10).aspx
'
https://msdn.microsoft.com/en-us/vba/excel-vba/articles/application-sendkeys-method-excel
SendKeys ("{DEL}"), True
' I'm not entirely sure on the "SendKeys" syntax.
' I think it's probably a good idea to have "True", so it waits.
' . . . True to have Microsoft Excel wait for the keys to be processed before returning control to the macro.
' . . . False (or omitted) to continue running the macro without waiting for the keys to be processed.
' It looks like you're supposed to write it this way, but the compiler rejects it:
' SendKeys ({DEL}, True)
' For some reason, bringing this up in a macro doesn't bring up the dialog "expanded" on the first try.
' You have to click "Options" to expand it, then, it stays this way, unless you close and re-open Excel.
End Sub