+ Reply to Thread
Results 1 to 5 of 5

Offset in a vlookup

  1. #1
    beachcomber
    Guest

    Offset in a vlookup

    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.

  2. #2
    Bob Phillips
    Guest

    Re: Offset in a vlookup

    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)


    "beachcomber" <[email protected]> wrote in message
    news:[email protected]...
    > 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.




  3. #3
    beachcomber
    Guest

    Re: Offset in a vlookup

    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.


    On Fri, 29 Jul 2005 10:00:56 +0100, "Bob Phillips"
    <[email protected]> wrote:

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



  4. #4
    Bob Phillips
    Guest

    Re: Offset in a vlookup

    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)


    "beachcomber" <[email protected]> wrote in message
    news:[email protected]...
    > 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.
    >
    >
    > On Fri, 29 Jul 2005 10:00:56 +0100, "Bob Phillips"
    > <[email protected]> wrote:
    >
    > >Do you mean that on selecting a code you want to hide that description?

    Does
    > >it occupy an adjacent cell?

    >




  5. #5
    beachcomber
    Guest

    Re: Offset in a vlookup

    Thanks, I will try this approach.

    On Fri, 29 Jul 2005 13:26:53 +0100, "Bob Phillips"
    <[email protected]> wrote:

    >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



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1