to use the "Pick from list" feature.
can only select certain cells, and many menu commands are unavailable
(dimmed). One of the commands that is unavailable is the Pick From List
command (to see this command, click the right mouse button in any cell).
press the Alt and Down Arrow keys. This will bring up a list of
all the unique items in the active column, and you can choose the
item you want from this list.
Entry Mode in Microsoft Excel, and the method you use will
depend on the setting of the DataEntryMode property. If the
DataEntryMode property is set to xlOn, then you can exit Data
Entry Mode by pressing the Escape key. If the DateEntryMode
property is set to xlStrict, then you can only exit Data Entry
Mode by running another macro that sets the property to xlOff.
listed at the beginning of this article. We are researching this problem
and will post new information here in the Microsoft Knowledge Base as it
version 7.0. The AutoComplete feature scans the active column for unique
entries, and when you bring up the Pick List, all of the unique entries are
displayed in a list box. Simply clicking on an item in the Pick List will
enter that item in the active cell, saving you from having to retype
something that already has been entered.
The DataEntryMode property is usually set to restrict the user to entering
data into a specific range of cells on the worksheet. As an example to see
how Data Entry Mode works, do the following:
- Open a new workbook.
- Select cells A1:B5 on Sheet1.
- On the Format menu, click Cells, and in the Format Cells dialog box,
click on the Protection tab.
- In the Protection tab, click the Locked check box to remove
the check, and then click the OK button.
- In a module sheet, enter the following macro code:
Microsoft provides examples of Visual Basic for applications procedures for
illustration only, without warranty either expressed or implied, including
but not limited to the implied warranties of merchantability and/or fitness
for a particular purpose. This Visual Basic procedure is provided 'as is'
and Microsoft does not guarantee that it can be used in all situations.
Microsoft does not support modifications of this procedure to suit customer
requirements for a particular purpose.
Sub Data_Entry_Test() 'The DataEntryMode property can be set to three values: 'xlOn will restrict you to working in the cells that 'are selected before the macro is run. You can press 'the escape key to turn off DataEntryMode. 'xlOff will turn DataEntryMode off. 'xlStrict will also restrict you to working in the cells 'that are selected before the macro is run, but you cannot 'turn off DataEntryMode by pressing the escape key. If the 'DataEntryMode property is set to xlStrict, you need to run 'another macro that sets it to xlOff in order to turn of 'Data Entry Mode. Application.DataEntryMode = xlOn End Sub
- Click on the tab for Sheet1 to activate it.
- Select cells A1:B5 on Sheet1, if they are not already selected.
- Run the macro from step 5.
You should now be able to only work with the cells in A1:B5.
- Press the Escape key to turn off Data Entry Mode.
ID članka: 137920 – Zadnji pregled: 14. feb. 2017 – Revizija: 1