+ Reply to Thread
Results 1 to 3 of 3

populate data from a list based on numbers input

Hybrid View

ve3jtd populate data from a list... 02-13-2015, 12:52 PM
walruseggman Re: populate data from a list... 02-13-2015, 02:45 PM
ve3jtd Re: populate data from a list... 02-13-2015, 02:49 PM
  1. #1
    Registered User
    Join Date
    02-13-2015
    Location
    Marathon, Ontario
    MS-Off Ver
    2013
    Posts
    2

    Exclamation populate data from a list based on numbers input

    Hello,

    I am looking to create a sheet that when i scan a barcode into a cell it populates a cross referenced number in the next cell.

    Basically i have items that have two types of identification tags. One that is a six digit number with a barcode (asset tag) and the other a four digit number used a a type of serial number.

    I want to be able to scan the barcode and have the second number show up in the next cell after referincing the document that has a cross referance sheet.

    Sorry for my inexperiance.

    Thanks for your help.

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: populate data from a list based on numbers input

    This code belongs on the sheet you are entering the barcodes into.

    Your post lacks a lot of details so your probably going to need to change a bit of this code. I put comments in telling you what you need to change.

    Private Sub Worksheet_Change(ByVal Target As Range)
    
    If Target.Column = 1 Then 'Whatever column you enter the barcodes into
        ws2 = Worksheet("Cross Reference") ' whatever the name of the sheet is with the cross references
        Set c = ws2.Range("A:A").Find(Target.Value)  ' whatever column the barcodes are on in the cross reference sheet
        If Not c Is Nothing Then
        
            'wherever you want to put the serial number. Here it is one column to the right of the entered barcode
            Target.Offset(0, 1).Value = _
            c.Offset(0, 1).Value ' wherever the serial numbers are in reference to the barcodes on the cross reference sheet
        End If
    End If
    End Sub

  3. #3
    Registered User
    Join Date
    02-13-2015
    Location
    Marathon, Ontario
    MS-Off Ver
    2013
    Posts
    2

    Re: populate data from a list based on numbers input

    Thank you for your help I will work with this.

    Again I'm sorry for the ambiguity

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Help! I need to populate data based on single cell input
    By markh719 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-27-2014, 11:40 PM
  2. Populate Output sheet based on input data and lookup condition
    By Cool\m/ in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-10-2013, 04:45 AM
  3. Formula to populate cell based on data input elsewhere
    By Unca Wook in forum Excel General
    Replies: 1
    Last Post: 11-03-2010, 07:05 PM
  4. Automatically populate a list based on defined categories -- user input varies
    By NearClueless in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-12-2009, 06:05 PM
  5. Populate a cell based on input from a drop down list
    By TroyDurham in forum Excel General
    Replies: 9
    Last Post: 01-19-2009, 09:47 PM

Tags for this Thread

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