Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default verify user input

Hi
I have a very simple Infopath form in which the user types in their
name and id number, which will concatinate to show them what their user
name will be in another text box on the form.

We have a separate exel sheet with the pre-setup usernames.

I would like a bit of script to take the contents of the text box in
infopath and verify that the exel spreadsheet includes a cell with that
content and if it does, show a "succesful" message or if it doesn't
exist show a "try again" message to the user.

Does anyone have any suggestions please?

Thanks alot

Dan

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default verify user input

Dim v, res
v = "Valuetocheck"
res = application.Match(v,Worksheets("sheet1").Range("A1 :A500"),0)
if iserror(res) then
msgbox "No match"
else
msgbox "Match"
End if

--
Regards,
Tom Ogilvy


"danny_chev" wrote:

Hi
I have a very simple Infopath form in which the user types in their
name and id number, which will concatinate to show them what their user
name will be in another text box on the form.

We have a separate exel sheet with the pre-setup usernames.

I would like a bit of script to take the contents of the text box in
infopath and verify that the exel spreadsheet includes a cell with that
content and if it does, show a "succesful" message or if it doesn't
exist show a "try again" message to the user.

Does anyone have any suggestions please?

Thanks alot

Dan


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prompt user for input and utilize that input ninner Excel Worksheet Functions 2 March 28th 07 09:44 PM
Verify user input box is a Month End Date mikeburg[_93_] Excel Programming 4 August 4th 06 05:42 PM
Verify information and input a value Richard Excel Discussion (Misc queries) 0 June 22nd 06 09:36 PM
Have user input converted to uppercase in same cell as input? Shannonn New Users to Excel 1 June 20th 06 03:19 AM
CODE to select range based on User Input or Value of Input Field Sandi Gauthier Excel Programming 4 December 8th 03 03:22 PM


All times are GMT +1. The time now is 06:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"