+ Reply to Thread
Results 1 to 17 of 17

Data from one textbox to another

  1. #1
    Registered User
    Join Date
    05-12-2016
    Location
    Mumbai, India
    MS-Off Ver
    2010
    Posts
    56

    Question Data from one textbox to another

    During running the userform for data entry, when I am writing something in a particular textbox, it should paste the same / reflect the same in a different textbox in the same form.


    Any suggestions?

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Data from one textbox to another

    Please Login or Register  to view this content.
    BSB

  3. #3
    Registered User
    Join Date
    05-12-2016
    Location
    Mumbai, India
    MS-Off Ver
    2010
    Posts
    56

    Re: Data from one textbox to another

    Will this code show me the data in real time during entering it in the form or will it be just saved in the backend?

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Data from one textbox to another

    As you type in one textbox it will appear in the other simultaneously.

    Cannot imagine why you'd need to do this though. Duplication seems odd.

    BSB

  5. #5
    Registered User
    Join Date
    05-12-2016
    Location
    Mumbai, India
    MS-Off Ver
    2010
    Posts
    56

    Re: Data from one textbox to another

    I tried it. Not happening.

    Please Login or Register  to view this content.

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Data from one textbox to another

    Where did you put the code?

    Could we see the workbook?

    BSB

  7. #7
    Registered User
    Join Date
    05-12-2016
    Location
    Mumbai, India
    MS-Off Ver
    2010
    Posts
    56

    Re: Data from one textbox to another

    http://www.excelforum.com/attachment...1&d=1464321748

    I am unable to attach the file. Please check if this link works. I will look for another alternative till then. Else you can share your email ID.
    Attached Files Attached Files

  8. #8
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Data from one textbox to another

    It works perfectly well for me. If I open the userform in your attachment and type into the "Complaint No." textbox the same appears in the "IF SOS Number" textbox.

    BSB

  9. #9
    Registered User
    Join Date
    05-12-2016
    Location
    Mumbai, India
    MS-Off Ver
    2010
    Posts
    56

    Re: Data from one textbox to another

    Ya it works. Sorry. My misunderstanding. Thank you so much...

  10. #10
    Registered User
    Join Date
    05-12-2016
    Location
    Mumbai, India
    MS-Off Ver
    2010
    Posts
    56

    Re: Data from one textbox to another

    Can I paste only 054 in one textbox if I enter IF/SOS/054/1617 in the other?

  11. #11
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Data from one textbox to another

    Possible if there is some consistency in your input. If it's always the value between the last 2 forward slashes it's possible to write code in an AfterUpdate-event.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  12. #12
    Registered User
    Join Date
    05-12-2016
    Location
    Mumbai, India
    MS-Off Ver
    2010
    Posts
    56

    Re: Data from one textbox to another

    The input will be consistent. only the number "054" will change.

  13. #13
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Data from one textbox to another

    Please Login or Register  to view this content.

  14. #14
    Registered User
    Join Date
    05-12-2016
    Location
    Mumbai, India
    MS-Off Ver
    2010
    Posts
    56

    Re: Data from one textbox to another

    I tried it but it still saves the complete text. Not the number.

  15. #15
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Data from one textbox to another

    See attached.
    I've added bakerman2's code and deleted the change event code you added previously (post #5) so there is no conflict between them.

    bakerman2's code works just fine. Note it will only populate the other textbox when you click out of the Complain No. textbox as opposed to a live update as you type.

    BSB
    Attached Files Attached Files
    Last edited by BadlySpelledBuoy; 06-01-2016 at 05:35 AM.

  16. #16
    Registered User
    Join Date
    05-12-2016
    Location
    Mumbai, India
    MS-Off Ver
    2010
    Posts
    56

    Re: Data from one textbox to another

    Works perfectly fine. Thanks..

  17. #17
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Data from one textbox to another

    Happy to help

    BSB

+ 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. Replies: 0
    Last Post: 08-18-2015, 04:13 PM
  2. Replies: 4
    Last Post: 01-29-2014, 05:53 AM
  3. List existing data in a UserForm Textbox and then be able to change the data.
    By gnaske in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-01-2013, 02:01 PM
  4. Macro to copy textbox data to a duplicate textbox in another worksheet
    By nitram lowm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-02-2013, 06:10 AM
  5. Replies: 7
    Last Post: 05-23-2012, 02:26 PM
  6. Transfer String Data from Textbox to Textbox
    By Mordred in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-27-2011, 09:10 AM
  7. UserForm – Data from TextBox to cell then cell to TextBox
    By gsandy in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-24-2009, 12:55 AM

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