Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 36
Default Mr. Kabel, Can you help me with this?

Can anyone help me re-write this so that it only works with doubleclick?

Thanks,

Kevin

"Bob Phillips" wrote:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.EnableEvents = False
On Error GoTo sub_exit
If Not Intersect(Target, Range("A1:A100")) Is Nothing Then
With Target
If .Value = "a" Then
.Value = ""
Else
.Value = "a"
.Font.Name = "Marlett"
End If
.Offset(0, 1).Select
End With
End If
sub_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Lee and Rebecca" wrote in message
...
Going back to the question about making a cell show an X just by clicking

on
it. Can you walk me through the steps with programming the cell to do

this.
Came we talk thru reg. e-mail?

thanks.




  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Mr. Kabel, Can you help me with this?

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Application.EnableEvents = False
On Error GoTo sub_exit
If Not Intersect(Target, Range("A1:A100")) Is Nothing Then
With Target
If .Value = "a" Then
.Value = ""
Else
.Value = "a"
.Font.Name = "Marlett"
End If
.Offset(0, 1).Select
End With
End If
sub_exit:
Application.EnableEvents = True

End Sub

HTH,
Bernie
MS Excel MVP


"kmwhitt" wrote in message
...
Can anyone help me re-write this so that it only works with doubleclick?

Thanks,

Kevin

"Bob Phillips" wrote:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.EnableEvents = False
On Error GoTo sub_exit
If Not Intersect(Target, Range("A1:A100")) Is Nothing Then
With Target
If .Value = "a" Then
.Value = ""
Else
.Value = "a"
.Font.Name = "Marlett"
End If
.Offset(0, 1).Select
End With
End If
sub_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Lee and Rebecca" wrote in message
...
Going back to the question about making a cell show an X just by clicking

on
it. Can you walk me through the steps with programming the cell to do

this.
Came we talk thru reg. e-mail?

thanks.






  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 36
Default Mr. Kabel, Can you help me with this?

Thanks, Bernie!!!

"Bernie Deitrick" wrote:

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Application.EnableEvents = False
On Error GoTo sub_exit
If Not Intersect(Target, Range("A1:A100")) Is Nothing Then
With Target
If .Value = "a" Then
.Value = ""
Else
.Value = "a"
.Font.Name = "Marlett"
End If
.Offset(0, 1).Select
End With
End If
sub_exit:
Application.EnableEvents = True

End Sub

HTH,
Bernie
MS Excel MVP


"kmwhitt" wrote in message
...
Can anyone help me re-write this so that it only works with doubleclick?

Thanks,

Kevin

"Bob Phillips" wrote:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.EnableEvents = False
On Error GoTo sub_exit
If Not Intersect(Target, Range("A1:A100")) Is Nothing Then
With Target
If .Value = "a" Then
.Value = ""
Else
.Value = "a"
.Font.Name = "Marlett"
End If
.Offset(0, 1).Select
End With
End If
sub_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Lee and Rebecca" wrote in message
...
Going back to the question about making a cell show an X just by clicking
on
it. Can you walk me through the steps with programming the cell to do
this.
Came we talk thru reg. e-mail?

thanks.






  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Mr. Kabel, Can you help me with this?

Private Sub Worksheet_BeforeDoubleClick(ByVal Target _
As Range, Cancel As Boolean)
Application.EnableEvents = False
On Error GoTo sub_exit
If Not Intersect(Target, Range("A1:A100")) Is Nothing Then
With Target
If .Value = "a" Then
.Value = ""
Else
.Value = "a"
.Font.Name = "Marlett"
End If
.Offset(0, 1).Select
End With
End If
sub_exit:
Application.EnableEvents = True
End Sub

Note: with the sheet module open select worksheet from the object dialog then
look at the options on procedure dialog.

You would find the doubleclick option


Gord Dibben MS Excel MVP

On Wed, 20 Sep 2006 07:56:01 -0700, kmwhitt
wrote:

Can anyone help me re-write this so that it only works with doubleclick?

Thanks,

Kevin

"Bob Phillips" wrote:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.EnableEvents = False
On Error GoTo sub_exit
If Not Intersect(Target, Range("A1:A100")) Is Nothing Then
With Target
If .Value = "a" Then
.Value = ""
Else
.Value = "a"
.Font.Name = "Marlett"
End If
.Offset(0, 1).Select
End With
End If
sub_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Lee and Rebecca" wrote in message
...
Going back to the question about making a cell show an X just by clicking

on
it. Can you walk me through the steps with programming the cell to do

this.
Came we talk thru reg. e-mail?

thanks.





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
Sum Product HJ Excel Worksheet Functions 4 October 27th 05 11:32 PM
Frank Kabel: A Sad Day for the Excel Community Norman Harker Excel Discussion (Misc queries) 38 February 7th 05 04:51 PM
Frank Kabel: A Sad Day for the Excel Community Norman Harker Excel Worksheet Functions 38 February 7th 05 04:51 PM
Frank Kabel: A Sad Day For The Excel Community Norman Harker New Users to Excel 6 January 19th 05 10:25 PM
Frank Kabel: A Sad Day For The Excel Community Norman Harker Setting up and Configuration of Excel 7 January 19th 05 10:25 PM


All times are GMT +1. The time now is 05:32 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"