+ Reply to Thread
Results 1 to 10 of 10

Inputbox with file is opened with input data verified with table

  1. #1
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Inputbox with file is opened with input data verified with table

    Hi all,
    I am trying to achieve is:
    - when file is opened, input box is displayed
    -It says to type your number and click OK
    -It then matches the number inputted by user with related application user name
    -if both match then file is opened
    -or else a warning flashes that number is wrong
    -It continues till user inputes the correct number

    e.g. My number is 1234 and applicationusername is ABCD
    when I open file, the applicationusername is already known as ABCD
    then I type 0000 which is incorrect as the matched number should be 1234
    this triggers warning till I input correct number

    How to do this ???
    Any help please.
    Kind regards


    Code I use us as follows:
    Thisworkbook
    Please Login or Register  to view this content.
    Module
    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: Inputbox with file is opened with input data verified with table

    Also can we change colour of the inputbox??
    Thanks

  3. #3
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Inputbox with file is opened with input data verified with table

    You may use:
    Please Login or Register  to view this content.
    You may not change colour of Inputbox - you must use userform if you wish to customise the input form.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  4. #4
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: Inputbox with file is opened with input data verified with table

    Hi Izandol,
    Wow
    A great solution though.
    Fantastic work.
    Thanks again.
    If I add the computername to code , will it be possible to add to this code which will again match machine name to its location, and then add it where "Log-in" comes, in this code Please.
    Machine name may be XCRIP2233 and location can be XYZ. I want XYZ to be populated in the input box rather than machine name

    Please Login or Register  to view this content.
    Again thanks for your help.
    I am closing this thread as original question is fully solved.
    Please let me know if you want me to post this question in new thread.

    Thanks again.

  5. #5
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Inputbox with file is opened with input data verified with table

    I do not understand the new requirement so I think if you may post as new question with additional information in the workbook that is better.

  6. #6
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: Inputbox with file is opened with input data verified with table

    OK Sir.
    Apology
    I will post it and send you a link
    My words will fall short to thank you.
    Kind regards

  7. #7
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: Inputbox with file is opened with input data verified with table

    Hi,
    I have posted a new thread
    Please have a look.
    attached File explains everything
    Many thanks
    kind regards
    http://www.excelforum.com/excel-prog...ml#post3524694

  8. #8
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: Inputbox with file is opened with input data verified with table

    Hi Izandol,
    Apology to re-open this one.
    When I click cancel button on the inputbox, it allows the file to be opened.
    By any way can we either disable 'cancel ' button on inputbox

    or

    code it to shut file if cancel button is clicked at any time

    Please help
    Kind regards

  9. #9
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Inputbox with file is opened with input data verified with table

    You may add
    Please Login or Register  to view this content.
    before 'If Isnumeric (mail)' line.

  10. #10
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: Inputbox with file is opened with input data verified with table

    Great work my friend
    God Bless

+ 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. Efficient way of creating summary table from input data file
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-28-2013, 06:40 AM
  2. InputBox to input data for each row
    By Shifcane in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-26-2011, 02:28 AM
  3. InputBox-ow to have a user input text in a inputbox
    By noodle48 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2011, 08:17 AM
  4. Select next column after data input into InputBox
    By Icanthearkinda in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-19-2009, 03:50 PM
  5. creating a Input message box asking name then only the excel file should get opened
    By ss_bb_24 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-19-2008, 06:28 AM

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