Offset in a vlookup

  • Thread starter Thread starter Bob Phillips
  • Start date Start date
B

Bob Phillips

Do you mean that on selecting a code you want to hide that description? Does
it occupy an adjacent cell?

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
This maybe an easy question, I need to create a list of time codes
with descriptions, but once selected, I only want the code, not the
descriptions to display. I have been trying to incorporate an Offset,
Any ideas.
 
Yes it would, this is a time code descrption of work issue. As the
user selects their job description by the text description, I need to
offset to the appropriate code no.
 
So no hiding, just reselect?

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Column = 2 Then
Target.Offset(0, -1).Select
End If
End Sub


--

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

Similar Threads

sudoku 6
Time Formula ??? 12
Counting number of "N",s 5
Auto Close 5
Vlookup & Macro Help! 2
Sequential numbers in a formula? 2
Vlookup and offset 3
Vlookup to reference offset 1

Back
Top