Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable border double-click navigation in Excel weatherman Excel Discussion (Misc queries) 1 February 14th 06 09:59 PM
How do I disable border double-click navigation in Excel? jeb4nardo Excel Discussion (Misc queries) 1 August 6th 05 12:50 AM
Click on graph bar to execute a double-click in a pivot table cell [email protected] Charts and Charting in Excel 4 August 3rd 05 01:37 AM
menus & Commandbars disable when double click on cell/formula bar helpme Excel Programming 0 March 11th 05 04:19 AM
Mouse Over Graph, Capture Information on Click(Double Click) Dean Hinson[_3_] Excel Programming 1 December 6th 04 04:49 AM


All times are GMT +1. The time now is 05:04 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"