+ Reply to Thread
Results 1 to 16 of 16

InputBox

  1. #1
    Forum Contributor
    Join Date
    07-07-2008
    Location
    sCOTLAND
    MS-Off Ver
    Office 2003 SP3
    Posts
    256

    InputBox

    Hi could someone please help me with this. I have attached a sample sheet to show you what i need.

    If you open the sheet you can see there is some data along the top in H1 & K1

    I have an order number and a date. What i would like is an Input box that would come up when any of the cells are clicked, that i could type in the Order Number and the Date.

    Can this be done so it puts in the data like i have in the sample?
    Attached Files Attached Files
    Last edited by JimmiOO; 02-11-2010 at 06:32 AM.

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Input Box Help

    I'll make smething, but it will take some time.

    One Tip: If you would like multiple lines in a cell press Alt-Enter
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  3. #3
    Forum Contributor
    Join Date
    07-07-2008
    Location
    sCOTLAND
    MS-Off Ver
    Office 2003 SP3
    Posts
    256

    Re: Input Box Help

    Thanks alot rwgrietveld, i will look forward to it.

  4. #4
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Input Box Help

    Here's my solution.

    See if you like it. Just press the cells H1:AE1

    I have a Userform With Two textboxs (Number and date)
    Press OK and a new string is build
    Press Cancel and the "Old" text remains
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    07-07-2008
    Location
    sCOTLAND
    MS-Off Ver
    Office 2003 SP3
    Posts
    256

    Re: Input Box Help

    That works great, would it be possible to format it so it keeps the same fonts and sizes as the sample box?

  6. #6
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Input Box Help

    Here is the new code (replace the old with this)
    Please Login or Register  to view this content.
    Last edited by rwgrietveld; 02-09-2010 at 09:02 AM.

  7. #7
    Forum Contributor
    Join Date
    07-07-2008
    Location
    sCOTLAND
    MS-Off Ver
    Office 2003 SP3
    Posts
    256

    Re: Input Box Help

    Thats just about it, just one little thing. When i type in the numbers and date (ie) 123456 i get the 123456 and also another character that looks like a little square on the end. Is there anyway to get rid of this?

  8. #8
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Input Box Help

    This is probably the CHAR(10) which is equal to Alt-Enter.
    This makes a newline. This should not show in your cell if it is formatted as "wrap text".

  9. #9
    Forum Contributor
    Join Date
    07-07-2008
    Location
    sCOTLAND
    MS-Off Ver
    Office 2003 SP3
    Posts
    256

    Re: Input Box Help

    Quote Originally Posted by rwgrietveld View Post
    This is probably the CHAR(10) which is equal to Alt-Enter.
    This makes a newline. This should not show in your cell if it is formatted as "wrap text".

    The cells are formated with "wrap text" but this is still showing, is there another way to get rid of it? or maybe an alternative?

  10. #10
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Input Box Help

    and if you put this in the cell: ="test"&CHAR(10)&"test"

  11. #11
    Forum Contributor
    Join Date
    07-07-2008
    Location
    sCOTLAND
    MS-Off Ver
    Office 2003 SP3
    Posts
    256

    Re: Input Box Help

    When i put that into the cell i get test at the top left and test in the bottom left

  12. #12
    Forum Contributor
    Join Date
    07-07-2008
    Location
    sCOTLAND
    MS-Off Ver
    Office 2003 SP3
    Posts
    256

    Re: Input Box Help

    Does anyone know how to hide this little square? if i take the Chr(10) out it gets rid of it but then i don't get the new line.

  13. #13
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: InputBox

    This line of code makes the string
    Please Login or Register  to view this content.
    /
    In my example I don't get the little square and it is funnny that when you use the char(10) (in the test) directly, you don't get it

    Beats me ??!!

  14. #14
    Forum Contributor
    Join Date
    07-07-2008
    Location
    sCOTLAND
    MS-Off Ver
    Office 2003 SP3
    Posts
    256

    Re: InputBox

    Yeah it's a strange one it works perfect apart from this square, could there be a setting within excel to tuen these off?

  15. #15
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: InputBox

    I can't find any. Please post a new thread with this problem as then other people will be notified.

    Sorry I can't help you on this one.

  16. #16
    Forum Contributor
    Join Date
    07-07-2008
    Location
    sCOTLAND
    MS-Off Ver
    Office 2003 SP3
    Posts
    256

    Re: InputBox

    No problem i will mark this as solved, thanks again for your help, hopefully i can find a way to hide this square.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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