Excel 2000 Find without select VBA

M

Matt.

I'm trying to create a small function that returns the column number of the
Result of a Find. But I don't want to Activate or Select the result of the
Find. Is there a way to do this? Google search through Groups and Web
Pages was vague to say the least.

cheers,
Matt.
 
C

Chip Pearson

Matt,

Try something like

Dim ColNum As Integer
ColNum = Cells.Find(what:="whatever").Column


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 

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

Top