+ Reply to Thread
Results 1 to 13 of 13

Textbox1 to show results not working

  1. #1
    Registered User
    Join Date
    07-07-2013
    Location
    Northampton uk
    MS-Off Ver
    Excel 2010
    Posts
    146

    Textbox1 to show results not working

    i have text or number in B:F with dates in col A, i got this code and i cant seem to find why its not working. this is done on a userform. when i put a date in the first text box i want all rows relating to that date displayed in textbox2. so if i put in 13 July 2013 it will show me all records relating to that date in textbox2

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Textbox1 to show results not working

    Sorry to tell you it's not that simple...

    Please Login or Register  to view this content.
    You have to convert the two dimensional array (the range) to a 1D array then join the elements of the array to make a string.

    abousetta
    Last edited by abousetta; 07-13-2013 at 10:29 AM.
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    07-07-2013
    Location
    Northampton uk
    MS-Off Ver
    Excel 2010
    Posts
    146

    Re: Textbox1 to show results not working

    well it sort of worked lol

    Attachment 250024

    not quite. would it not be simple just be able to the work sheet into textbox2 and get rid of textbox one and the button?

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Textbox1 to show results not working

    It works because text boxes display text. What you are seeing is the text equivalent of the time and information in the remainder of the cells. It may not be what you imagined, but it is working correctly.

    From the description you provided, I don't understand how you want it formatted.

    What does this mean exactly?

    would it not be simple just be able to the work sheet into textbox2 and get rid of textbox one and the button?

  5. #5
    Registered User
    Join Date
    07-07-2013
    Location
    Northampton uk
    MS-Off Ver
    Excel 2010
    Posts
    146

    Re: Textbox1 to show results not working

    Quote Originally Posted by abousetta View Post
    It works because text boxes display text. What you are seeing is the text equivalent of the time and information in the remainder of the cells. It may not be what you imagined, but it is working correctly.

    From the description you provided, I don't understand how you want it formatted.

    What does this mean exactly?
    Attachment 250025

    please see imega

    sheet 1 would represent my "progress schedule" sheet

  6. #6
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Textbox1 to show results not working

    Did you photoshop that yourself? I've heard there was a worksheet object embedded in a userform in earlier versions of Excel but that has been discontinued.

    You can get a similar approach using a listbox here. It was written by MVP JKP but I haven't had a chance to review the coding so won't be much help adapting it to your needs.

    abousetta

  7. #7
    Registered User
    Join Date
    07-07-2013
    Location
    Northampton uk
    MS-Off Ver
    Excel 2010
    Posts
    146

    Re: Textbox1 to show results not working

    its microsoft office spreadsheet control 11.0 omg how the heck do i change that to do what i need but i like it

    here is my file

    Attachment 250032
    Last edited by flyinghigher2011; 07-13-2013 at 11:39 AM.

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Use a listbox.
    If posting code please use code tags, see here.

  9. #9
    Registered User
    Join Date
    07-07-2013
    Location
    Northampton uk
    MS-Off Ver
    Excel 2010
    Posts
    146

    Re: Textbox1 to show results not working

    Quote Originally Posted by Norie View Post
    Use a listbox.
    please look at my last post and you will see what im trying to do please.

  10. #10
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Textbox1 to show results not working

    It was part of Office 2003. I downloaded it from the office website but it's not appearing my one of the additional controls. I think they disabled in 2007 or 2010 (which I'm currently using). Could you upload a workbook with it embbed? I want to see what errors I get when I open the file.

    @Norie, you know more about this than me, do you if we can install the Office 2003 Add-in (Office Web Components) in Office 2010 (64-bit)?

    Thanks.

    abousetta

  11. #11
    Registered User
    Join Date
    07-07-2013
    Location
    Northampton uk
    MS-Off Ver
    Excel 2010
    Posts
    146

    Re: Textbox1 to show results not working

    Quote Originally Posted by abousetta View Post
    Did you photoshop that yourself? I've heard there was a worksheet object embedded in a userform in earlier versions of Excel but that has been discontinued.

    You can get a similar approach using a listbox here. It was written by MVP JKP but I haven't had a chance to review the coding so won't be much help adapting it to your needs.

    abousetta
    i just got his file

    could you please take a look at it and tell me where with in the files that i need to change code as the button will be on a different sheet to where the info is kept.

    ive had a look but perhaps im missing something

  12. #12
    Registered User
    Join Date
    07-07-2013
    Location
    Northampton uk
    MS-Off Ver
    Excel 2010
    Posts
    146

    Re: Textbox1 to show results not working

    i have got my form with the new code in but how do i point it to my information please

  13. #13
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Textbox1 to show results not working

    Which form is the one you want to display data on?

+ 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. 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
  2. How to Show ALT+ results
    By PosseJohn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-29-2013, 03:35 PM
  3. Only show formula results if not 0 (zero)
    By randolphoralph in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-29-2008, 12:42 PM
  4. lookup and show all results
    By JAHanlon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-07-2006, 07:50 PM
  5. [SOLVED] with formulas that show negative results I want to show zero inste
    By brit64 in forum Excel General
    Replies: 6
    Last Post: 08-29-2005, 07:05 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