data val multi select

39

Upload: abdul-malik-js

Post on 02-Feb-2016

66 views

Category:

Documents


3 download

DESCRIPTION

dsadsdadasda

TRANSCRIPT

Page 1: Data Val Multi Select

Premium Multi-Select Kit With Listbox

There is a premium version of the multi-select technique, and you can see the details here: Data Validation Multi Select Premium

In the premium version, a list box automatically selects any items that are already in the cell. It also has buttons to Clear all the selections, and select all the items.

The premium version works with dependent lists too, and runs on a protected worksheet. There is also an option of showing a multi-select listbox, or a single-select version (this is helpful when working with dependent lists -- you don't want multiple items selected in the main columns).

The kit has 3 sample files, and a user guide, with details and screen shots, on how to add this technique to your own workbooks.

Page 2: Data Val Multi Select
Page 3: Data Val Multi Select

Developed by Contextures Inc. www.contextures.com

Three One Two ThreeFive Three Five

Select from the data validation dropdowns in column C, and items are added to the adjacent columns

To view the code, right-click the sheet tab, and choose View Code

In the Data Validation dialog box, Error Alerts were turned off. When an invalid item is entered, a message box appears, and the item is NOT added to the next column at the right.

Page 4: Data Val Multi Select

Developed by Contextures Inc. www.contextures.com

Get the Premium Version

Page 5: Data Val Multi Select

One Three FiveThree FiveFive TwoTwo

Get the Premium Version

Select from one of the data validation dropdowns, and items are added to the next available row in the column to the right.The data validation cell is cleared.

To view the code, right-click the sheet tab, and choose View Code

Page 6: Data Val Multi Select

OneFive

Page 7: Data Val Multi Select

Two One, TwoGet the Premium Version

Select from the data validation dropdowns in column C, and items are added to the adjacent cell in column D, separated by a comma

To view the code, right-click the sheet tab, and choose View Code

Page 8: Data Val Multi Select

Select from the data validation dropdowns in column C, and items are added to the adjacent cell in column D, separated by a comma

To view the code, right-click the sheet tab, and choose View Code

Page 9: Data Val Multi Select

Jun

Get the Premium Version

MayJun

Select from the data validation dropdowns in column C, and items are added to the adjacent cell in column D, separated by a line break

To view the code, right-click the sheet tab, and choose View Code

Page 10: Data Val Multi Select

Select from the data validation dropdowns in column C, and items are added to the adjacent cell in column D, separated by a line break

To view the code, right-click the sheet tab, and choose View Code

Page 11: Data Val Multi Select

Bert

Get the Premium Version

BenCamBert Select from the data validation dropdowns in column

C, and items are added to the adjacent cell in column D, separated by a line break

To view the code, right-click the sheet tab, and choose View Code

New Items can be entered in the cell, and will be automatically added to the named range.

Page 12: Data Val Multi Select

Select from the data validation dropdowns in column C, and items are added to the adjacent cell in column D, separated by a line break

To view the code, right-click the sheet tab, and choose View Code

New Items can be entered in the cell, and will be automatically added to the named range.

Page 13: Data Val Multi Select

Two, Three

www.contextures.com

Get the Premium Version

Select from the data validation dropdowns in column C, and items are added to the active cell in column C, separated by a comma

To view the code, right-click the sheet tab, and choose View Code

Page 14: Data Val Multi Select

Select from the data validation dropdowns in column C, and items are added to the active cell in column C, separated by a comma

To view the code, right-click the sheet tab, and choose View Code

Page 15: Data Val Multi Select

Two, Three, Four

www.contextures.com

Select from the data validation dropdowns in column C, and items are added to the active cell in column C, separated by a comma

To view the code, right-click the sheet tab, and choose View Code

This sheet is protected, with no password

Page 16: Data Val Multi Select

Select from the data validation dropdowns in column C, and items are added to the active cell in column C, separated by a comma

To view the code, right-click the sheet tab, and choose View Code

This sheet is protected, with no password

Page 17: Data Val Multi Select

Months Names Numbers Get the Premium Version

Select from the data validation dropdowns in column C or D, and items are added to the active cell, separated by a comma.New Items can be entered those columns, and will be automatically added to the applicable named range.

Only a single item can be selected in column B, and only items from the drop down list.

To view the code, right-click the sheet tab, and choose View Code

Page 18: Data Val Multi Select

Select from the data validation dropdowns in column C or D, and items are added to the active cell, separated by a comma.New Items can be entered those columns, and will be automatically added to the applicable named range.

Only a single item can be selected in column B, and only items from the drop down list.

To view the code, right-click the sheet tab, and choose View Code

Page 19: Data Val Multi Select

OneFour, Two, One

www.contextures.com

Get the Premium Version

Select from the data validation dropdowns in column C

--If the item is not currently in the cell, it is added to the active cell in column C, separated by a comma

--If the item has been previously selected in the cell, that item is removed.

To view the code, right-click the sheet tab, and choose View Code

Page 20: Data Val Multi Select

Select from the data validation dropdowns in column C

--If the item is not currently in the cell, it is added to the active cell in column C, separated by a comma

--If the item has been previously selected in the cell, that item is removed.

To view the code, right-click the sheet tab, and choose View Code

Page 21: Data Val Multi Select

Strongly Agree, Neutral, DisagreeNeutral, DisagreeStrongly Agree, Disagree

www.contextures.com

Select from the data validation dropdowns in column C

--If the item is not currently in the cell, it is added to the active cell in column C, separated by a comma

--If the item has been previously selected in the cell, that item is removed.

NOTE: This code avoids the possibility of accidentally removing similar items, that could occur with the code on the SameCellAddRemove sample worksheet code

--It only removes the entire word, such as "Agree", and not text that is part of a word, as in "Disagree"

To view the code, right-click the sheet tab, and choose View Code

NOTE: This code works on a protected or unprotected sheetThis sheet is protected, with no password

Page 22: Data Val Multi Select

Select from the data validation dropdowns in column C

--If the item is not currently in the cell, it is added to the active cell in column C, separated by a comma

--If the item has been previously selected in the cell, that item is removed.

NOTE: This code avoids the possibility of accidentally removing similar items, that could occur with the code on the SameCellAddRemove sample worksheet code

--It only removes the entire word, such as "Agree", and not text that is part of a word, as in "Disagree"

To view the code, right-click the sheet tab, and choose View Code

NOTE: This code works on a protected or unprotected sheetThis sheet is protected, with no password

Page 23: Data Val Multi Select

OneTwo, Four, One, Five

www.contextures.com

Get the Premium Version

Select from the data validation dropdowns in column C

--If the item is not currently in the cell, it is added to the active cell in column C, separated by a comma

--If the item has been previously selected in the cell, that item is not added again.

To view the code, right-click the sheet tab, and choose View Code

Page 24: Data Val Multi Select

Select from the data validation dropdowns in column C

--If the item is not currently in the cell, it is added to the active cell in column C, separated by a comma

--If the item has been previously selected in the cell, that item is not added again.

To view the code, right-click the sheet tab, and choose View Code

Page 25: Data Val Multi Select

Three, FiveFour, Six, Nine, Eleven

www.contextures.com

Get the Premium Version

Select from the data validation dropdowns in column C, , and items are added to the active cell in column C, separated by a comma

-- All numbers are listed in column K

-- Drop down lists in column C are based on the NumbersB list.

--If an item has been previously used, in any cell in column C, it is not in the drop down list

To view the code, right-click the sheet tab, and choose View Code

Page 26: Data Val Multi Select

NumbersA NumbersBOne 2 OneTwo 3 TwoThree SevenFour EightFive TenSix TwelveSeven 8Eight 9NineTen 11

ElevenTwelve 13

Select from the data validation dropdowns in column C, , and items are added to the active cell in column C, separated by a comma

-- All numbers are listed in column K

-- Drop down lists in column C are based on the NumbersB list.

--If an item has been previously used, in any cell in column C, it is not in the drop down list

To view the code, right-click the sheet tab, and choose View Code

Page 27: Data Val Multi Select

Number Colour MonthThree Aug

Sep Select from the data validation dropdowns in column B or D, and items are added to the same cell, separated by a line break

To make changes to one of the yellow cells, add a check mark to the Edit Entries check box. After you finish editing, press Enter, to exit the cell, and then remove the check mark.

The check box is linked to the EditMode cell on the AdminNotes sheet.

To view the code, right-click the sheet tab, and choose View Code

Edit Entries

Page 28: Data Val Multi Select

Get the Premium Version

Select from the data validation dropdowns in column B or D, and items are added to the same cell, separated by a line break

To make changes to one of the yellow cells, add a check mark to the Edit Entries check box. After you finish editing, press Enter, to exit the cell, and then remove the check mark.

The check box is linked to the EditMode cell on the AdminNotes sheet.

To view the code, right-click the sheet tab, and choose View Code

Page 29: Data Val Multi Select

www.contextures.com

Select from the data validation dropdowns in column C, and items are added to the active cell in column C, separated by a comma

The matching code for each selected items is added in column D.

To view the code, right-click the sheet tab, and choose View Code

Page 30: Data Val Multi Select

Number IDOne 1Two 2

Three 3Four 4Five 5Six 6

Get the Premium Version

Select from the data validation dropdowns in column C, and items are added to the active cell in column C, separated by a comma

The matching code for each selected items is added in column D.

To view the code, right-click the sheet tab, and choose View Code

Page 31: Data Val Multi Select

0 <==Edit Mode

1 Cell B2 is TRUE if the Edit Entries box is checked on the Log sheet

2 When Edit Entries is checked (TRUE), - you can make changes to the cells in the Multiple Selection columns. - For example, highlight one of the items in the list, and delete it - the column headings turn orange, as a reminder

3 When Edit Entries is unchecked (FALSE), - you can add new items in the Multiple Selection columns, - or press Delete, to clear the cell - the column headings are yellow

Page 32: Data Val Multi Select

Jan Ann 1 OneFeb Ben 2 TwoMar Cam 3 ThreeApr Dan 4 FourMay Ed FiveJunJulAugSepOctNovDec

The NameList Range (column C) will sort automatically if names are added or deleted on this sheet (one cell at a time)

Page 33: Data Val Multi Select

Strongly AgreeAgreeNeutralDisagreeStrongly Disagree

Page 34: Data Val Multi Select

Contextures Products

Contextures Recommends

Contextures Sites & News

PivotPower Premium Add-inUserForms for Data Entry ebook KitContextures Excel Tools Add-inData Validation Multi-Select Premium Kit30 Excel Functions in 30 Days eBook Kit

Jon Peltier's Excel Chart UtilitiesExcelUser DashboardsXtreme Pivot Table CoursePower Pivot UniversityExcel Courses OnlineChandoo's Excel VBA SchoolChandoo's Project Management Templates

Contextures Excel NewsletterContextures Excel Tips WebsiteContextures Excel BlogExcel Pivot Tables BlogDebra's Pivot Table Books on Amazon

Page 35: Data Val Multi Select

Time-saving tools for pivot table power usersStep by step instructions and videosMake instant backups, sort sheets, and many more toolsSelect multiple items from a listbox, to enter in a single cellSample workbook and easy to follow user guide for key Excel functions

Create complex charts with just a few clicksTemplates and instructions for impressive dashboardsVideo training from beginner to advanced topicsOnline course by Power Pivot expert Rob CollieExcel training by Mynda TreacyBecome awesome in Excel VBA with Chandoo's online trainingSave time with Chandoo's templates for project management

Weekly Excel tips, tutorials, videos, and newsHundreds of tutorials, tips and sample filesRead the Excel tutorials and share your commentsPivot table tutorials and tips, with comments and questionsPivot table books for Excel 2007