Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Setting bkcolor on active cell when left mouse doubleclikked

Environment Office97 excel.

Hi, trying to set backgroundcolor of the cell which beeing doublecliked

With Worksheets("Rodeuker").ActiveCell.Interior.Color = RGB(255, 0, 0)

This doesnt work and I cant figure out, cause cant find anything in
help-file for visual basic part of excel.

Thank You
regards jan


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 422
Default Setting bkcolor on active cell when left mouse doubleclikked

Did this with Macro Recorder:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
With Selection.Interior
.ColorIndex = 3
.Pattern = xlSolid
End With
End Sub


"Jan Eikeland" wrote in message
...
Environment Office97 excel.

Hi, trying to set backgroundcolor of the cell which beeing doublecliked

With Worksheets("Rodeuker").ActiveCell.Interior.Color = RGB(255, 0, 0)

This doesnt work and I cant figure out, cause cant find anything in
help-file for visual basic part of excel.

Thank You
regards jan




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Setting bkcolor on active cell when left mouse doubleclikked

thanks , that worked, I must try the macro and watch the code comes out of
it.
reg jan

"JMay" skrev i melding news:SKhCb.2790$hf1.1368@lakeread06...
Did this with Macro Recorder:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
With Selection.Interior
.ColorIndex = 3
.Pattern = xlSolid
End With
End Sub


"Jan Eikeland" wrote in message
...
Environment Office97 excel.

Hi, trying to set backgroundcolor of the cell which beeing doublecliked

With Worksheets("Rodeuker").ActiveCell.Interior.Color = RGB(255, 0, 0)

This doesnt work and I cant figure out, cause cant find anything in
help-file for visual basic part of excel.

Thank You
regards jan






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Setting bkcolor on active cell when left mouse doubleclikked

Target provides a reference to the cell being doubleclicked. It would be
better to use that rather than depend on selection:

Private Sub Worksheet_BeforeDoubleClick( _
ByVal Target As Range, Cancel As Boolean)
Target.ColorIndex = 3
' or
' target.Interior.Color = RGB(255, 0, 0)
End Sub

--
Regards,
Tom Ogilvy


"Jan Eikeland" wrote in message
...
thanks , that worked, I must try the macro and watch the code comes out of
it.
reg jan

"JMay" skrev i melding

news:SKhCb.2790$hf1.1368@lakeread06...
Did this with Macro Recorder:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
With Selection.Interior
.ColorIndex = 3
.Pattern = xlSolid
End With
End Sub


"Jan Eikeland" wrote in message
...
Environment Office97 excel.

Hi, trying to set backgroundcolor of the cell which beeing

doublecliked

With Worksheets("Rodeuker").ActiveCell.Interior.Color = RGB(255, 0, 0)

This doesnt work and I cant figure out, cause cant find anything in
help-file for visual basic part of excel.

Thank You
regards jan








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
my mouse won't scroll left or right in excel but will in other pr. Tony C Excel Discussion (Misc queries) 1 January 5th 10 03:13 AM
I click in a cell & it acts like I am holding onto the left mouse koverheul Excel Discussion (Misc queries) 3 May 16th 07 01:36 AM
How do I change mouse scroll from left and right to up and down? tom New Users to Excel 0 July 4th 06 02:59 PM
Mouse scroll jumps from up/down to left/right Chris Excel Discussion (Misc queries) 0 April 15th 05 05:48 AM
moving mouse highlights cells without touching left mouse button bremboy Excel Discussion (Misc queries) 2 January 27th 05 06:19 PM


All times are GMT +1. The time now is 10:39 PM.

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"