Thread: Drop Down List
View Single Post
  #12   Report Post  
Posted to microsoft.public.excel.newusers
Pete[_5_] Pete[_5_] is offline
external usenet poster
 
Posts: 30
Default Drop Down List

On 26 Jul, 21:13, Pete wrote:
On 26 Jul, 00:15, Gord Dibben <gorddibbATshawDOTca wrote:





Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "C11,E11,G11,I11,K11" * * 'add cells to suit
Dim cell As Range
* * On Error GoTo ws_exit
* * Application.EnableEvents = False
* * If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
* * * * With Target
* * * * If .Value < "" Then
* * * * * * .Value = .Value * .Offset(6, 0).Value
* * * * * * End If
* * * * End With
* * End If
ws_exit:
* * Application.EnableEvents = True
End Sub


Gord


On Fri, 25 Jul 2008 11:58:53 -0700 (PDT), Pete
wrote:


A similar problem, I would like to enter a value in the C11 and
convert it to another after the Value has been entered. E.g If I enter
100 in C11 I would like to Divide it by the Value I have in C17 under
the Change Event Procedure. I would need to do this in the full Range
e.g Divide E11 by E17 and G11 by G17 etc etc. upto AK11/AK17


CAn yuo show me how to adapt your previous code to do this too?


Thanks


Pete- Hide quoted text -


- Show quoted text -


Thanks Gord, I will give it a try.

I now have pieces of code in the Change Sub and they seem to affect
each other. Can this piece of code you've just done for me work along
side the earlier one you did?

Pete- Hide quoted text -

- Show quoted text -


Gord, perfect again exacly what I want. If I post all the code I have
in the Change Event sub, could you tidy it up for me so it works
properly. I can get the ones you have done for me to work seperately,
but when they are both in only the first one works. I also have Chip
Pearson's Quick Time Entry code in there to and I could od with all 3
working.

thanks in advance

Pete