+ Reply to Thread
Results 1 to 2 of 2

understanding how to use input boxes

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    understanding how to use input boxes

    The code below opens up an inputbox, right? How does it know to proceed to ask "Example if it is January 1, enter 1."? And why is there a comma after that statement? And finally, where is there another comma and then a "1"? Thanks.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: understanding how to use input boxes

    It doesn't proceed. Its one long question separated by vbCrLf (Carriage return line feed) which will separate the string into different lines.

    The & concatenates the entire message into one string.

    The comma after that statement is to separate between optional arguments for the inputbox. The comma tells the code you are done with the body of the message and would like to move on to setting the caption of the input box (in the header of the box). The last optional setting, 1, determines what type of inputbox you're using.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

+ 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. Additional input Boxes, based on answer to first input box
    By DrBball7 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-07-2013, 05:38 AM
  2. Input boxes
    By nitrox_guy in forum Excel General
    Replies: 1
    Last Post: 04-27-2011, 10:26 AM
  3. Input boxes
    By luke_p in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-20-2008, 09:12 AM
  4. Input boxes
    By gav_69 in forum Excel General
    Replies: 6
    Last Post: 09-05-2008, 07:12 AM
  5. [SOLVED] How do I add input data in the input ranges in drop down boxes.
    By oil_driller in forum Excel General
    Replies: 1
    Last Post: 11-09-2005, 06:40 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