[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

Dynamic drop validation list: Excel 2000

Asked by ADKstorm in Microsoft Excel Spreadsheet Software, Microsoft, Microsoft Applications, Microsoft Office Suite

Tags: Excel 2000, VBA, validation, drop list

Excel version being used: Excel 2000
Using Microsoft XP

I have been attempting to provide an updating drop-down list in my spreadsheet with various methods but have failed. I have a method that works but requires a ton of formulas in every possible cell in the required columns&this adds up to an extremely large and unacceptable excel file.

The spreadsheet attached is a clipping of my master spreadsheet (reduced the clutter to make it simple for illustration on what is trying to be done. The spreadsheet tracks the work progress. I would like to add the ability to assign drawing numbers that are assigned per discipline and as you use a number it is remove from the drop list. This would also help to eliminate the possibility of duplicates being assigned. I have attempted VBA and managed for a short time to get the concept to work but with many undesirable side effects and errors. One effect is if a user accidentally chooses the wrong number it is already to late because the VBA already removed it from the list.

I example attached spreadsheet (the example does not contain any vba) is similar to my master xls, in that majority of the rows are hidden. As a user needs a row they click a button to add a row (a button that unhides a row and does various other things (copies formulas down a row, changes the print area, etc.) &. This keeps my number of formulas down, thus keeps the xls file size down. Some projects may only need 100 rows and others may need 7,000.

Basics:

On PDSR sheet tab:

1.      User chooses a discipline (column C) in the row they are filling out.
2.      Upon selecting a discipline, this basically enables the cell in column G which has a validation set to: =INDIRECT(C2)
So, on DWGList sheet tab, I have the columns assigned with the name field the same name as the discipline.
This gives me my different drop lists depending on the discipline chosen in that row.

Problem:

Trying to make the drop list dynamic and have the already used drawing numbers unavailable in the drop list. This would show the user the numbers that are left and gives the user only the chose in the drop list. I would not have a problem with the use of a msgbox that asks the user if the number that chose is the correct one&.if the user selects no, the cell contents would clear and the number would still appear back in the drop list.

As a bonus, it would be cool if someone assigns a number, then days later deletes it (not needing the drawing number) and the drop list is automatically update to now include that number.

I have found some code online that I tried to use as a starting point but ran into many troubles and side effects that I mentioned above.

The code from the Internet:

Private Sub Worksheet_Change(ByVal Target As Range)

Dim strVal As String

Dim strEntry As String



    On Error Resume Next

        strVal = Target.Validation.Formula1

            If Not strVal = vbNullString Then

                strEntry = Target

                Application.EnableEvents = False

                With Sheet1.Range("MyList")

                    .Replace What:=strEntry, _

                        Replacement:="", LookAt:=xlWhole, _

                        SearchOrder:=xlByRows, MatchCase:=False

               

                    .Sort Key1:=.Range("A1"), Order1:=xlAscending, _

                        Header:=xlNo, OrderCustom:=1, MatchCase:=False, _

                        Orientation:=xlTopToBottom

                    .Range("A1", .Range("A65536").End(xlUp)).Name = "MyList"

                End With

            End If

        Application.EnableEvents = True

    On Error GoTo 0

End Sub
Attachments:
 
Spreadsheet example
 
[+][-]02/25/09 08:09 AM, ID: 23735157Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Microsoft Excel Spreadsheet Software, Microsoft, Microsoft Applications, Microsoft Office Suite
Tags: Excel 2000, VBA, validation, drop list
Sign Up Now!
Solution Provided By: patrickab
Participating Experts: 3
Solution Grade: A
 
[+][-]01/27/09 04:49 PM, ID: 23482707Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/28/09 03:44 AM, ID: 23485497Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/28/09 05:38 AM, ID: 23486246Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/28/09 06:15 AM, ID: 23486594Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/28/09 06:58 AM, ID: 23487094Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/02/09 10:02 AM, ID: 23529492Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/03/09 03:45 AM, ID: 23536126Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/03/09 04:12 AM, ID: 23536279Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/17/09 08:18 AM, ID: 23661200Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/18/09 08:53 AM, ID: 23672182Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/24/09 03:57 PM, ID: 23728277Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/24/09 03:58 PM, ID: 23728283Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]02/24/09 03:59 PM, ID: 23728291Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]02/24/09 04:13 PM, ID: 23728376Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/24/09 04:37 PM, ID: 23728523Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/24/09 09:28 PM, ID: 23730503Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/25/09 01:15 AM, ID: 23731600Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/25/09 06:20 AM, ID: 23733783Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/25/09 07:20 AM, ID: 23734508Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/25/09 07:38 AM, ID: 23734759Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/25/09 08:08 AM, ID: 23735147Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/25/09 10:11 AM, ID: 23736508Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02/25/09 10:18 AM, ID: 23736581Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091118-EE-VQP-93 - Hierarchy / EE_QW_3_20080625