+ Reply to Thread
Results 1 to 11 of 11

Need Help with textbox when passing data to sheet(UserForm)

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Need Help with textbox when passing data to sheet(UserForm)

    hi, everone

    i am passing my data using textbox to sheet using userform.

    is it possible to before passing data to sheet it change the value of textbox,

    like, i type "EF" in textbox so it change to "Excel Forum". its like we assign a shortcut using File>Option>Proofing>AutocorrectOption>Auto Correct
    or i type "HS" it will change to "HaroonSid"

    thanx
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,357

    Re: Need Help with textbox when passing data to sheet(UserForm)

    It probably can be done but there has to be a list somewhere containing the values that need to be replaced and the replacement value.
    Or maybe two arrays in the code which we loop too look for one value and then retrieve other value from second array.
    Maybe an example file will help.
    Last edited by bakerman2; 02-10-2017 at 04:36 AM.
    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.

  3. #3
    Forum Contributor
    Join Date
    10-18-2015
    Location
    manila, philippines
    MS-Off Ver
    MS Office 2010
    Posts
    186

    Re: Need Help with textbox when passing data to sheet(UserForm)

    try to have a database that lists all possible entries with it's corresponding value on another sheet. It's gonna be easier that way.

  4. #4
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: Need Help with textbox when passing data to sheet(UserForm)

    ok, i will make all possible entries list, after making this who to i use this database

  5. #5
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: Need Help with textbox when passing data to sheet(UserForm)

    Example file is here

    Capture.JPG
    Attached Files Attached Files

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,357

    Re: Need Help with textbox when passing data to sheet(UserForm)

    Where's the list ????

  7. #7
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: Need Help with textbox when passing data to sheet(UserForm)

    list added to my textbox1, which value i want to change

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: Need Help with textbox when passing data to sheet(UserForm)

    Above solved my problem
    no need further solution


    thanx a lot for reply bakerman2

  9. #9
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,357

    Re: Need Help with textbox when passing data to sheet(UserForm)

    Take a look at this.

    Please Login or Register  to view this content.

  10. #10
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,095

    Re: Need Help with textbox when passing data to sheet(UserForm)

    Yes,

    this i it what i want
    thanx bakerman2
    thread solved

  11. #11
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,357

    Re: Need Help with textbox when passing data to sheet(UserForm)

    You're welcome.

+ 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. copy text from userform textbox to sheet textbox
    By Dfrost in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-28-2015, 02:19 AM
  2. Replies: 0
    Last Post: 08-18-2015, 04:13 PM
  3. [SOLVED] Passing textbox value from userform to sql
    By Megatronixs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2015, 05:02 AM
  4. Replies: 1
    Last Post: 04-16-2014, 12:02 AM
  5. Replies: 4
    Last Post: 01-29-2014, 05:53 AM
  6. [SOLVED] Userform only to input data to Sheet only if textbox contains data/number.
    By BPSJACK in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-31-2012, 11:30 AM
  7. Passing Variable from Sheet to Userform
    By gti_jobert in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-27-2006, 05:38 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