April 2006
Beginner
1114 pages
98h 16m
English
Application.DataEntryMode [= setting]
Sets or returns whether or not Excel is in data-entry mode. Can be one of these settings:
|
|
|
|
|
|
Data-entry mode restricts users to unlocked cells. By default, cell protection is set to Locked, so you must unlock a range to demonstrate this feature. The following code restricts data entry to range A1:D4; the user can return to regular mode by pressing Esc, as shown by the following code:
Sub TestDataEntryMode( )
Range("a1:d4").Locked = False
Application.DataEntryMode = xlOn
End SubRead now
Unlock full access