+ Reply to Thread
Results 1 to 18 of 18

prompt box for inputting data

  1. #1
    Registered User
    Join Date
    11-08-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    31

    prompt box for inputting data

    hello, i am trying to make this database i am working on particularly fancy, with a prompt box that will ask for data and input the relevant data into the relevant column.

    so the first question would be 'Please enter venue code' (this would then be entered into the next available cell in column A)
    the second 'please enter venue name' (entered into Column B)
    the third 'please enter Closest Railhead' (entered into Column C)
    the forth 'please enter Alternate railhead' (entered into column D)
    the fifth 'Please enter venue Postcode' (entered into Column G)
    the sixth 'Please enter Latitude' (entered into column H)
    the seventh 'Please enter Longitude' (entered into column I)

    if anyone could help me with this i would be eternally grateful,

    Declan
    Last edited by Declan.Ryan; 11-15-2012 at 11:42 AM. Reason: added some forgotten columns

  2. #2
    Registered User
    Join Date
    11-08-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: prompt box for inputting data

    would this be better in the VBA forum?

  3. #3
    Registered User
    Join Date
    11-08-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: prompt box for inputting data

    bump bump bump

  4. #4
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: prompt box for inputting data

    working on it, give me a min...

  5. #5
    Registered User
    Join Date
    11-08-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: prompt box for inputting data

    amazing thank you

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

    Re: prompt box for inputting data

    Why not use the database entry form> http://spreadsheets.about.com/od/exc...data_form.htm?

  7. #7
    Registered User
    Join Date
    11-08-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: prompt box for inputting data

    great suggestion, just that it needs to be a little more user friendly and convenient for the users.

    i really just need boxes saying DO THIS.. NOW DO THIS. :P

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

    Re: prompt box for inputting data

    Ok, put this in a standard module:
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose Tools | Macro | Macros
    Select a macro in the list, and click the Run button

  9. #9
    Registered User
    Join Date
    11-08-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: prompt box for inputting data

    this is absolutely great, how would i get it to start in A instead of Column B?

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

    Re: prompt box for inputting data

    Change:
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    11-08-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: prompt box for inputting data

    perfect, thank you so much for your help

  12. #12
    Registered User
    Join Date
    11-08-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: prompt box for inputting data

    oo.. maybe one more thing, i really hope i am not asking too much. would it be possible for these boxes to come up as soon as the worksheet is opened?

    also it seems to be getting rid of formulas in the "", _ cells, any way to keep those?
    Last edited by Declan.Ryan; 11-15-2012 at 10:53 AM.

  13. #13
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: prompt box for inputting data

    Put this in the ThisWorkbook instead of Module One

    Please Login or Register  to view this content.
    Last edited by Legend Rubber; 11-15-2012 at 10:56 AM. Reason: Addition

  14. #14
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: prompt box for inputting data

    i also came up with the attached... dont know if it works for you...
    Book1.xlsm
    Not quite done, still errors if nothing is entered...

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

    Re: prompt box for inputting data

    Hi Legend,

    try not to select things in your code, it slows it down and makes the screen flicker. For example:
    Please Login or Register  to view this content.
    Can be written as:
    Please Login or Register  to view this content.
    and:
    Please Login or Register  to view this content.
    as:
    Please Login or Register  to view this content.

  16. #16
    Registered User
    Join Date
    11-08-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: prompt box for inputting data

    is there any way to keep the formulas in the D and E cells?

  17. #17
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: prompt box for inputting data

    Sorry, my internet blitzed yesterday.
    You have marked this as solved, did you get everything you were looking for?
    Did my suggestion help? If so, kindly click the star below my name
    Thanks.

  18. #18
    Registered User
    Join Date
    11-08-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: prompt box for inputting data

    yes it works perfectly, i decided to stop being lazy and just drag the formula down from the above row. i tried to add a star yesterday but it said i couldn't add any more to your name untill i had starred another person :p thank you so much for the help

+ 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