+ Reply to Thread
Results 1 to 5 of 5

Import data in userform according to random Textbox value

  1. #1
    Registered User
    Join Date
    01-14-2020
    Location
    Imola
    MS-Off Ver
    Office 2016
    Posts
    3

    Post Import data in userform according to random Textbox value

    Hi All,

    I hope to be as clear as possible, as this is my first thread.
    I'll immediately get to the point.
    I have an Userform with a Button and 3 TextBoxes.
    In the Sheet1 I have a list of values divided in 3 coloumns. In the first coloumn I have only numbers, from 1 to X. Both second and third coloumn show data which should be related to the value of the first cell in the same row.

    When I press the button in the Userform, the Textbox1 show a random result among the numbers in the first coloumns. (I've no problem with this one)
    At the same time, Textbox 2 and 3 must be populated showing the related data in the same row of coloumn 1 imported value. (I'm stucked here)
    Hope it's clear..

    Thanks in advance for your attention
    R.
    Attached Files Attached Files

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Import data in userform according to random Textbox value

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-14-2020
    Location
    Imola
    MS-Off Ver
    Office 2016
    Posts
    3

    Re: Import data in userform according to random Textbox value

    Thanks!! works perfectly!

  4. #4
    Registered User
    Join Date
    01-14-2020
    Location
    Imola
    MS-Off Ver
    Office 2016
    Posts
    3

    Re: Import data in userform according to random Textbox value

    Just a question,
    how would the entire code change if I have to import this in openoffice?
    (sorry if this isn't the right place for this question..)

    thanks in advance
    R.

  5. #5
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Import data in userform according to random Textbox value

    'Open Office' recognises most VBA code.
    I would something that simple would not cause a problem.

+ 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] Userform textbox based on data from another textbox
    By jimmisavage in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-22-2018, 10:24 AM
  2. Replies: 6
    Last Post: 07-15-2017, 09:54 AM
  3. Replies: 0
    Last Post: 08-18-2015, 04:13 PM
  4. Replies: 23
    Last Post: 07-12-2014, 07:09 PM
  5. Replies: 4
    Last Post: 01-29-2014, 05:53 AM
  6. Userform Textbox updating a another userform textbox (im stuck!!)
    By wapwap in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-31-2011, 02:56 PM
  7. [SOLVED] Random Text in a userform textbox
    By Soniya in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2006, 09:35 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