Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Data Validation in Workbook

Hello MVP's

First, I am not a proficient VBA programmer by any stretch of the imagination!

I have set up Data Validation using dynamic contingent ranges.
A2's Validation = the named Dynamic Range "Departments" - an ever growing
list defined by the companies departments as dictated by a paste dump from
CRM software.

A3's Validation = "DeptEmployees" another dynamic range picking from the
list of all employees, only those that are in the department selected in A2.

User must pick a valid, standardised, department, and assign a current
employee to that role.

The lists of departments and Employees are ever changing, and updated lists
are pasted in automatically and correctly each week.

I then have 27 worksheets that users enter data into, each referring to
separate event rotas. Typically ~20 employees to an event.

My problem is that if an employee leaves the company, the outdated data can
be left in one of the 27 sheets.

I know this can be a problem, as when the new employee list is dumped in,
if the old employee is no longer on it, it conflicts with the Data Validation
Criteria if i actively check the data validation on that sheet.

I want a User to be able to push a button, or something, that allows them to
go to the next conflicting data, wherever it is in the Workbook, and correct
it, displaying a message if there are none left

I can do this for each individual sheet using the "Circle Invalid Data"
function
Sub CheckValidationCriteria()
Calculate
ActiveSheet.CircleInvalid
End Sub

Which shows the red circles, but I want the user to be taken to that cell,
and then subsequent invalid cells, over all the worksheets, as people
understandably find checking all 27 sheets one after the other laborious,
especially as there may only be one conflict in the entire workbook each week.

Any help is greatly appreciated as always
KeLee

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 158
Default Data Validation in Workbook

Have you considered using data validation instead?
Contextures.com (http://www.contextures.com/xlDataVal01.html <<< this is
the 1st chapter of several chapters, maybe chapter 7?) has excellent
information on various type of data validations that do not require any vba
coding.

--
Thx
MSweetG222



"KeLee" wrote:

Hello MVP's

First, I am not a proficient VBA programmer by any stretch of the imagination!

I have set up Data Validation using dynamic contingent ranges.
A2's Validation = the named Dynamic Range "Departments" - an ever growing
list defined by the companies departments as dictated by a paste dump from
CRM software.

A3's Validation = "DeptEmployees" another dynamic range picking from the
list of all employees, only those that are in the department selected in A2.

User must pick a valid, standardised, department, and assign a current
employee to that role.

The lists of departments and Employees are ever changing, and updated lists
are pasted in automatically and correctly each week.

I then have 27 worksheets that users enter data into, each referring to
separate event rotas. Typically ~20 employees to an event.

My problem is that if an employee leaves the company, the outdated data can
be left in one of the 27 sheets.

I know this can be a problem, as when the new employee list is dumped in,
if the old employee is no longer on it, it conflicts with the Data Validation
Criteria if i actively check the data validation on that sheet.

I want a User to be able to push a button, or something, that allows them to
go to the next conflicting data, wherever it is in the Workbook, and correct
it, displaying a message if there are none left

I can do this for each individual sheet using the "Circle Invalid Data"
function
Sub CheckValidationCriteria()
Calculate
ActiveSheet.CircleInvalid
End Sub

Which shows the red circles, but I want the user to be taken to that cell,
and then subsequent invalid cells, over all the worksheets, as people
understandably find checking all 27 sheets one after the other laborious,
especially as there may only be one conflict in the entire workbook each week.

Any help is greatly appreciated as always
KeLee

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 158
Default Data Validation in Workbook

Oops - posted to wrong post... sorry KeLee, this was intended for someone else.
--
Thx
MSweetG222



"MSweetG222" wrote:

Have you considered using data validation instead?
Contextures.com (http://www.contextures.com/xlDataVal01.html <<< this is
the 1st chapter of several chapters, maybe chapter 7?) has excellent
information on various type of data validations that do not require any vba
coding.

--
Thx
MSweetG222



"KeLee" wrote:

Hello MVP's

First, I am not a proficient VBA programmer by any stretch of the imagination!

I have set up Data Validation using dynamic contingent ranges.
A2's Validation = the named Dynamic Range "Departments" - an ever growing
list defined by the companies departments as dictated by a paste dump from
CRM software.

A3's Validation = "DeptEmployees" another dynamic range picking from the
list of all employees, only those that are in the department selected in A2.

User must pick a valid, standardised, department, and assign a current
employee to that role.

The lists of departments and Employees are ever changing, and updated lists
are pasted in automatically and correctly each week.

I then have 27 worksheets that users enter data into, each referring to
separate event rotas. Typically ~20 employees to an event.

My problem is that if an employee leaves the company, the outdated data can
be left in one of the 27 sheets.

I know this can be a problem, as when the new employee list is dumped in,
if the old employee is no longer on it, it conflicts with the Data Validation
Criteria if i actively check the data validation on that sheet.

I want a User to be able to push a button, or something, that allows them to
go to the next conflicting data, wherever it is in the Workbook, and correct
it, displaying a message if there are none left

I can do this for each individual sheet using the "Circle Invalid Data"
function
Sub CheckValidationCriteria()
Calculate
ActiveSheet.CircleInvalid
End Sub

Which shows the red circles, but I want the user to be taken to that cell,
and then subsequent invalid cells, over all the worksheets, as people
understandably find checking all 27 sheets one after the other laborious,
especially as there may only be one conflict in the entire workbook each week.

Any help is greatly appreciated as always
KeLee

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
copying data validation to another workbook billf Excel Discussion (Misc queries) 3 March 14th 10 07:19 PM
Data Validation - can you use another workbook? Don Excel Discussion (Misc queries) 4 August 3rd 08 06:24 PM
Data Validation From Different Workbook Wally Excel Discussion (Misc queries) 2 November 28th 06 06:37 PM
Data Validation in another Workbook - HELP! Rich58 Excel Discussion (Misc queries) 2 January 29th 06 01:33 AM
Data Validation slowing down workbook Quoc Nguyen Excel Programming 0 October 17th 03 12:40 AM


All times are GMT +1. The time now is 09:51 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"