#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PH NEWS
 
Posts: n/a
Default doubleclick

Hi All,

How can I use double-click to enter a letter in a cell.
For example, in B1:E1 I have an address, when I double-click on B1 I would
like a "P" to appear in A1 and so on and so on down to say B3000. Can this
be done?

Cheers

SPL


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
davesexcel
 
Posts: n/a
Default doubleclick


Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As
Boolean)
If Union(Range("$B:$E"), Target).Address = Range("$B:$E").Address Then
ActiveCell.Offset(0, -1).Range("A1").Select
ActiveCell.FormulaR1C1 = "P"
ActiveCell.Select
With Selection
.HorizontalAlignment = xlCenter
End With
ActiveCell.Offset(0, 1).Range("A1:D1").Select
Cancel = True
End If
End Sub


Try This!!!


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=520988

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
When I doubleclick in Excel, page jumps down/up. EsaMake Excel Discussion (Misc queries) 2 February 1st 06 07:03 PM
Opening files in Excel with mouse wheel set for doubleclick walshie Excel Discussion (Misc queries) 0 October 3rd 05 10:13 AM


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