Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
PD PD is offline
external usenet poster
 
Posts: 18
Default VB/Excel query

To assist with office management, I need a VB script or excel macro that does
not allow input in a defined column if the data being input is not listed on
another column.

For ex: the file has a sheet marked Operator Name, which lists names of all
the staff members. The other sheet is an input sheet which requires us to
input the name of the staff and their performance details.

I need a VB script/excel solution that does not allow the inputter to input
a name that is not listed on sheet marked Operator Name. (Data validation or
List would not be appropriate as the team size is large and the inoutter will
have to scroll through a huge list of names).

Also, if I am not being too greedy, could it be possible for the script to
mention the closest possible name available on the Operator Name sheet in
case the inputter mis-spells the name.

Thank you for your assistance.
Regards,

PD.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default VB/Excel query

If you don't want a DV List what about a DV Custom formula, eg

=MATCH(A1,People,0)

Change A1 to the DV / input cell, 'People' is a named range or cell ref of
the list of names (could be a dynamic name). Set Input message and Error
alert to suit.

Regards,
Peter T

"PD" wrote in message
...
To assist with office management, I need a VB script or excel macro that

does
not allow input in a defined column if the data being input is not listed

on
another column.

For ex: the file has a sheet marked Operator Name, which lists names of

all
the staff members. The other sheet is an input sheet which requires us to
input the name of the staff and their performance details.

I need a VB script/excel solution that does not allow the inputter to

input
a name that is not listed on sheet marked Operator Name. (Data validation

or
List would not be appropriate as the team size is large and the inoutter

will
have to scroll through a huge list of names).

Also, if I am not being too greedy, could it be possible for the script to
mention the closest possible name available on the Operator Name sheet in
case the inputter mis-spells the name.

Thank you for your assistance.
Regards,

PD.



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
Excel 2007 / MS Query - editing existing query to another sheet Hotpepperz Excel Discussion (Misc queries) 0 June 13th 08 06:53 PM
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? jocke Excel Discussion (Misc queries) 1 November 29th 05 01:44 PM
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? jocke Excel Discussion (Misc queries) 0 November 28th 05 06:37 PM
Edit Query from Excel will not open query in MSQuery Michelle Excel Programming 0 February 21st 05 03:59 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM


All times are GMT +1. The time now is 07:40 PM.

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

About Us

"It's about Microsoft Excel"