Question : Excel VBA search

What would be the VBA code instead of using Ctrl+B to access the search form.

If the search criteria is in a specified cell, can I get that value as default in the search form and perhaps start the search directly.

Answer : Excel VBA search

Okki,

Here's a variation:

Sub HersIsAnotherMethod()
  Dim x As Variant
  x = InputBox("Enter search value:")

  'This one works in Swedish versions of Excel
  SendKeys "^b" & x & vbCr
End Sub

/Ture
Random Solutions  
 
programming4us programming4us