+ Reply to Thread
Results 1 to 17 of 17

Display the Output in Textbox

  1. #1
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Display the Output in Textbox

    Hello,

    I am trying to get the ouput in textbox8 but i am getting it the cell. Can anyone please help



    Please Login or Register  to view this content.
    Last edited by Biplab1985; 06-03-2015 at 12:41 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: Display the Output in Textbox

    this seems to be working.

    Please Login or Register  to view this content.
    mostly stolen from:
    http://stackoverflow.com/questions/2...et-the-formula
    which has an alternative solution as well. also, here's a nifty trick for determining the size of the textbox based on the location of individual cells if you don't like the 100, 100, 200, 50 method:
    http://stackoverflow.com/questions/6...tomating-excel
    Last edited by simarui; 06-03-2015 at 12:43 PM. Reason: adding reference material
    Hope I could help - if your post has been solved don't forget to mark it as such.

    Clicking the * below is a great way to say thanks!

    "Drowning in 10 feet of water isn?t any different than drowning in a million feet. And if you can swim, it doesn?t matter how deep the ocean is. At some level, once you realize you?re in water that?s too deep to stand, you have to have a very different approach," - Joi Ito

  3. #3
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Display the Output in Textbox

    It is not working. I need to just display the output in Text box8

  4. #4
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: Display the Output in Textbox

    is the text box named "Text box8" or is it the eighth textbox...? maybe this would work:
    Please Login or Register  to view this content.
    or perhaps

    Please Login or Register  to view this content.

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Display the Output in Textbox

    Hello Biplab1985.

    To help you get a solution, you need to provide more details. The best way to do this is by posting your workbook.

    Please change or redact any information in your workbook that is personal, confidential, or sensitive before you post.

    How To Post Your Workbook
    1. At the bottom right of the Reply window, Click the button Go Advanced
    2. At the top of the Your Message Window, in the first row of icons, Click the Paperclip icon.
    3. Click the Add Files button at the top right in the dialog box. This displays the File Manager dialog.
    4. Click the Select Files button at the bottom middle of the dialog.
    5. In the new window Find the file you want to upload, select it, and Click Open.
    6. You will now be back in the File Manager dialog. Click the bottom Middle button Upload File.
    7. Wait until the file has completely uploaded before you exit the File Manager dialog.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  6. #6
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Display the Output in Textbox

    Still not working. File attached the code is in Module1
    Attached Files Attached Files
    Last edited by Biplab1985; 06-03-2015 at 03:21 PM.

  7. #7
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: Display the Output in Textbox

    how bout this:
    Please Login or Register  to view this content.
    p.s. looks like you've got a textbox8_change event which is trying to run and blows everything up... i commented that out to make this work. not sure what you were trying to accomplish there.

  8. #8
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Display the Output in Textbox

    The textbox8_change event is to call Columntorow function. There is a optionbutton associated with that Textbox8. What i want to acheieve is - If the Option Box is checked/True Textbox8 will CALL Columntorow funtion.

    Thanks for the change in the previous code. It worked but Textbox8_Change is unable to Call Columntorow function of module.
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Display the Output in Textbox

    I got it! Instead of Textbox8_change event i used theOptionButton_Click and i worked as i wanted. Thanks Simarui for all you help. I come back for more.

    Please Login or Register  to view this content.

  10. #10
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: Display the Output in Textbox

    glad i could help, don't forget to mark the thread solved

  11. #11
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Display the Output in Textbox

    I am getting an comma(,) in the begining of the output like-

    ,1,2,3,4. It should not come right?. Please help!

  12. #12
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: Display the Output in Textbox

    the code i wrote shouldn't add any commas... did you change your workbook and the associated code? please re-upload your most recent sample file.

  13. #13
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Display the Output in Textbox

    This is the code i am using here


    Please Login or Register  to view this content.

  14. #14
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Display the Output in Textbox

    Sheet attached. COde is in Module1
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Display the Output in Textbox

    Hi Simarui,

    Any input?

  16. #16
    Valued Forum Contributor
    Join Date
    01-10-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    651

    Re: Display the Output in Textbox

    how 'bout if you just move the comma to the end of that statement:
    Please Login or Register  to view this content.
    actually that will just add a comma to the end of the string which you probably also don't want (i.e. 1,2,3,4,5,)

    how bout this:
    Please Login or Register  to view this content.
    Last edited by simarui; 06-25-2015 at 10:02 AM. Reason: don't like my first code...

  17. #17
    Forum Contributor
    Join Date
    05-19-2015
    Location
    Karnataka, INdia
    MS-Off Ver
    MS Office 2010
    Posts
    277

    Re: Display the Output in Textbox

    One mOre Help.

    I am looking for a code to keep updating a textbox whenever you add any data to a column "O". Code is below. I am calling this code witha Option Button
    HTML Code: 

+ 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] Excel 2010 - Userform - display date from textbox in a label or textbox in 'ddd' format
    By theshybutterfly in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-29-2015, 10:54 PM
  2. Excel 2010 – VBA Userforms – Vlookup via Textbox, display result in another textbox
    By theshybutterfly in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-29-2015, 12:31 AM
  3. Userform textbox output to one decimal place
    By Tubes2015 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-18-2015, 11:12 AM
  4. MultiLine TextBox line count to display in label or textbox
    By khhoa in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-10-2015, 06:02 PM
  5. How to format TextBox output as numerical
    By knarf in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-15-2009, 02:52 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