Urgent - VBA procedure

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

=OFFSET(INDIRECT(ADDRESS(MATCH(908,$A:$A,0),1,2,),TRUE),1,16)

I need help to design a VBA procedure, based on the formula above, that
would allow me to input with an Inputbox the several customer numbers (in
this case 908) to be added in row T8
 
Jeff,

Try this

Dim iMatch As Long
On Error Resume Next
iMatch = Application.Match(908, Range("A:A"), 0)
On Error GoTo 0
If iMatch > 0 Then
MsgBox ActiveCell.Offset(iMatch - ActiveCell.Row + 1, 16 -
ActiveCell.Column + 1)
End If

--
HTH

Bob Phillips

(remove nothere from 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