I'm sorry.
I don't understand enough to help.
You may want to take a crack at what you want and post back with any specific
questions you have.
Dear Dave Peterson
I am working with the share stock ,the market open with specific price for
each company , I want to collect all the quantity 0f stock that has been
sold higher than the opening price for each company and put them in one cell
say for example cell E (group 1) and collect all the stock that has been sold
lower than the opening price for each company and put them in one cell say
for example cell F (group 2) and last collect all the stock that has been
sold with same as the opening price for each company and put them in one
cell say for example cell G(group 3) as shown below :
A B C D E F G
Company name Opening price Last price Last qua Group 1 Group2 Group 3
Central Bank 50 49 100 =F+100
Insurance CO. 30 32 500 =E+500
Petrochemical CO. 70 70 1200 =G+1200
Phrmatical CO. 60 59 800 =F+800
off course the opening price stay fix all the day but last price and last
quantity change every second or so ,I am comparing the last price with open
price if the last price higher then I add last quantity to the value of cell
E if less I add last quantity to the value of cell F and if the last price
equal to the open price I add last quantity to the value of cell G and this
is the code it is working fine but if I insert the last price manually , and
stop and doesn't respond if I make for example C1=T10 as in our previous
problem .
If Selection.Count > 1 Then Exit Sub
If Not Intersect(Target, Columns("C:C")) Is Nothing Then
If Target <= 0 Or Not IsNumeric(Target) Then Exit Sub
If Target > Target.Offset(0, -1) Then Target.Offset(0, 2) =
Target.Offset(0, 2) + Target.Offset(0, 1)
If Target < Target.Offset(0, -1) Then Target.Offset(0, 3) =
Target.Offset(0, 3) + Target.Offset(0, 1)
If Target = Target.Offset(0, -1) Then Target.Offset(0, 4) =
Target.Offset(0, 4) + Target.Offset(0, 1)
End If
End Sub
> I'm sorry.
>
[quoted text clipped - 66 lines]
> > >
> > > Dave Peterson
Dave Peterson - 25 Mar 2008 12:46 GMT
Maybe someone else can figure this out. I'm still having trouble.
> Dear Dave Peterson
> I am working with the share stock ,the market open with specific price for
[quoted text clipped - 106 lines]
> >
> > Dave Peterson

Signature
Dave Peterson