+ Reply to Thread
Results 1 to 13 of 13

'Cell value' to 'textbox1.text' in userform

  1. #1
    Registered User
    Join Date
    06-02-2014
    Posts
    88

    'Cell value' to 'textbox1.text' in userform

    Hi,
    In the button 'Update original risk', located in H80, you will find 'TextBox1'. How to make it referenced to cell J86?

    The current formula doesn't work
    Please Login or Register  to view this content.
    http://www.opendrive.com/files/OF84N...MjFl/TEST.xlsm

    Regards,
    Marcin
    Last edited by Marcin4111; 05-22-2015 at 06:23 AM.

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: 'Cell value' to 'textbox1.text' in userform

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  3. #3
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    867

    Re: 'Cell value' to 'textbox1.text' in userform

    Hello

    You put the
    TextBox1.Text = Range("J86").Value in the TextBox1_Change() event
    it works just fine (if you change something in the text box it puts the value in J86 (3))
    Maybe if you put the line in the Userform initialize ?
    Please Login or Register  to view this content.
    this brings the value from J86 into the textbox
    Is this ok?
    What is your goal?
    .. and don't forget to have fun!
    Bogdan.

    mark SOLVED and Add Reputation if my answer pleases you

  4. #4
    Registered User
    Join Date
    06-02-2014
    Posts
    88

    Re: 'Cell value' to 'textbox1.text' in userform

    Thank you bulina2k,
    There is a half of success achieved.
    My goal is that the value from cell J86 sould be displayed dynamically in textbox1, depending on selected optionbutton.

    Regards,
    Marcin
    Last edited by Marcin4111; 05-21-2015 at 08:19 AM.

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: 'Cell value' to 'textbox1.text' in userform

    @ Marcin4111

    1) As kyle123 mentioned and iyou choose to ignore him,

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    So

    Your post does not comply with Rule 7 of our Forum RULES. Please do not ignore requests by Administrators, Moderators and senior forum members regarding forum rules.

    If you are unclear about the request or instruction then send a private message to them asking for clarification.

    All participants:
    Please do not post a reply in a thread where a moderator-Or a Senior Member- has requested an action that has not yet been complied with e.g Title change or Code tags...etc. Thanks.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: 'Cell value' to 'textbox1.text' in userform

    @ bulina2k

    Your post does not comply with Rule 7 of our Forum RULES. Please do not ignore requests by Administrators, Moderators and senior forum members regarding forum rules.

    If you are unclear about the request or instruction then send a private message to them asking for clarification.

    All participants:
    Please do not post a reply in a thread where a moderator has requested an action that has not yet been complied with e.g Title change or Code tags...etc. Thanks.

  7. #7
    Registered User
    Join Date
    06-02-2014
    Posts
    88

    Re: 'Cell value' to 'textbox1.text' in userform

    So should I provide with new post?

  8. #8
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: 'Cell value' to 'textbox1.text' in userform

    You should put a link to all the places that you've posted this question in your original post

  9. #9
    Registered User
    Join Date
    06-02-2014
    Posts
    88

    Re: 'Cell value' to 'textbox1.text' in userform

    I posted my message on only those two forums.

  10. #10
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: 'Cell value' to 'textbox1.text' in userform

    Which 2 forums? You haven't provided a link

  11. #11
    Registered User
    Join Date
    06-02-2014
    Posts
    88

    Re: 'Cell value' to 'textbox1.text' in userform

    http://www.mrexcel.com/forum/excel-q...-userform.html
    Hope it's clear now.

    Regards,
    Marcin

  12. #12
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    867

    Re: 'Cell value' to 'textbox1.text' in userform

    ok now:
    first change the formula in J86 into
    =IFERROR(AVERAGE(I86);0)


    then in the Sheet2 code put this:

    Please Login or Register  to view this content.
    HTH.

  13. #13
    Registered User
    Join Date
    06-02-2014
    Posts
    88

    Re: 'Cell value' to 'textbox1.text' in userform

    Works perfect. Thank You!

    Regards,
    Marcin

+ 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. Get Data from a cell into TextBox1 in Userform?
    By excellenthelp in forum Excel General
    Replies: 3
    Last Post: 03-22-2014, 06:42 AM
  2. [SOLVED] Userform Textbox1 = Val(Textbox2.Value) / 2
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-14-2013, 09:37 AM
  3. If textbox1 is empty then put paste some default text to textbox1
    By vijaynadiad in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2013, 03:16 PM
  4. [SOLVED] Troubles: setting userform- Textbox1 as a range
    By baggypants in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-03-2013, 01:55 PM
  5. [SOLVED] Outlook UserForm Textbox1=Subject
    By NewGuy OnBlock in forum Outlook Programming / VBA / Macros
    Replies: 2
    Last Post: 04-19-2012, 06:47 PM

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