Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
disable cursor when double click
i have this code in sheet1
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) Application.EditDirectlyInCell = True Range("A1").Activate End Sub Private Sub Worksheet_SelectionChange(ByVal Target As Range) Range("A1").Select End Sub In range "A1" i have a word "dog" hence when i single click any cell on sheet1 cell a1 is selected. This is what i want. So if i want to change dog to cat i just type. But if i double click a cell a cursor appears after the "g" in dog, hence i have to use backspace to then enter "cat" I need to prevent the cursor appearing in any instance, hence allowing me to directly type over existing word Please help |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
disable cursor when double click
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean) Application.EditDirectlyInCell = True Range("A1").Activate Cancel = true 'Cancel the default behaviour End Sub -- HTH... Jim Thomlinson "sunilpatel" wrote: i have this code in sheet1 Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) Application.EditDirectlyInCell = True Range("A1").Activate End Sub Private Sub Worksheet_SelectionChange(ByVal Target As Range) Range("A1").Select End Sub In range "A1" i have a word "dog" hence when i single click any cell on sheet1 cell a1 is selected. This is what i want. So if i want to change dog to cat i just type. But if i double click a cell a cursor appears after the "g" in dog, hence i have to use backspace to then enter "cat" I need to prevent the cursor appearing in any instance, hence allowing me to directly type over existing word Please help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Disable border double-click navigation in Excel | Excel Discussion (Misc queries) | |||
How do I disable border double-click navigation in Excel? | Excel Discussion (Misc queries) | |||
Click on graph bar to execute a double-click in a pivot table cell | Charts and Charting in Excel | |||
menus & Commandbars disable when double click on cell/formula bar | Excel Programming | |||
Mouse Over Graph, Capture Information on Click(Double Click) | Excel Programming |