Marco/VBA Code to Serach a Column

  • Thread starter Thread starter robertguy
  • Start date Start date
R

robertguy

Hi,

can anyone help me with a Macro/VBA code which I can run via a butto
which displays a Search Box that will only search in a specific colum
e.g. Column B


Many thanks for any help


Regards



Ro
 
Hi!

The ordinary Find/Replace box (ctrl/F) will do this.

Select your column (the whole column) by clicking on, say, the B at th
top.
Call up Find. Choose Search By Columns.

If you need something more sophisticated, there's always VBA...

Al
 
Hi
try something like
Sub foo()
Columns("B:B").Select
Application.Dialogs(xlDialogFormulaReplace).Show
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top