Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Jan 9, 2:40*pm, "James" wrote:
I have a column than I input names in. Each cell of that column already has a space entered in it, so that autocomplete will function. However, if a user deletes an entry in the column, he deletes the space also. I tried the following sub in the worksheet change event to solve this problem: If Not Intersect(Target, wshDatabase.Range("Names")) Is Nothing Then If Target.Value = "" Then Target.Value = " " It works fine unless the user selects more than one cell when he deletes data, in which case I get a "type mismatch" error. How do I correct my sub so it works with a multi cell selection? First line of event if target.count1 then exit sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
User Form deletes previous entry | Excel Programming | |||
Detecting When User Deletes a Sheet | Excel Programming | |||
Detecting when a user deletes a row | Excel Programming | |||
Detecting when a user deletes a row | Excel Worksheet Functions | |||
Detecting when Excel user inserts or deletes a row | Excel Programming |