Find a cell with a special value and activate it

  • Thread starter Thread starter Mirja
  • Start date Start date
M

Mirja

Hello!

I'd like to do the following:

Get a date from a different workbook (which is given in
cell A9) and then find the date in my workbook in Row "1"
and activate the cell.

Can anybody help? Thank you!

Mirja
 
Dim oCell As Range

Set oCell = Rows(1).Find(Range("A9").Value)
If Not oCell Is Nothing Then
oCell.Select
End If


--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Many thanks!!

Mirja

-----Original Message-----

Dim oCell As Range

Set oCell = Rows(1).Find(Range("A9").Value)
If Not oCell Is Nothing Then
oCell.Select
End If


--

HTH

RP
(remove nothere from the email address if mailing direct)





.
 
my pleasure.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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