+ Reply to Thread
Results 1 to 2 of 2

Search a number from a textbox in a column and copy adjacent cells in different textboxes

  1. #1
    Registered User
    Join Date
    10-06-2009
    Location
    Spain
    MS-Off Ver
    Excel 2007
    Posts
    50

    Search a number from a textbox in a column and copy adjacent cells in different textboxes

    I was wondering if itīs posible the following in Excel VBA.

    I have a form with a textbox and when I enter a certain number (unique number) into that textbox I want to search for that number in a especific sheet and column.

    When that number is found for example en cell "A5", I want to copy cell "A6" to a text box in that form. And copy in "A7" in another textbox. And so on.

    Thank you in advanced!

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Search a number from a textbox in a column and copy adjacent cells in different textbo

    Very easily done.

    You should have posted your spreadsheet, but as you haven't I'll attach a spreadsheet that does something like that.

    Use the combobox to select wet goods

    type bud into one of the text boxes
    type green into another

    click on the listbox if required
    Attached Files Attached Files

+ 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. [SOLVED] If number in Column A matches number in column B - Copy B cell and adjacent cells ?
    By BPSJACK in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-16-2014, 12:30 PM
  2. [SOLVED] Search value in cells and copy adjacent value to specific cell
    By venkatakrishna in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-02-2014, 11:21 AM
  3. [SOLVED] Search for value, and then copy value in adjacent column
    By T15K in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-01-2013, 02:08 AM
  4. Replies: 2
    Last Post: 07-01-2013, 10:00 PM
  5. Search and copy adjacent cells
    By bennimartin in forum Excel General
    Replies: 1
    Last Post: 12-14-2010, 02:11 AM

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