Moderator: 2020vision
by mak » Sun Dec 13, 2009 10:20 am
by mak » Sun Dec 13, 2009 10:21 am
mak wrote:I want to close a workbook when my exposure (cell L2) reach a limit lets say -300
I am trying to use the following code but nothing is happening...
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Columns.Count = 16 Then
If Cells(2, 12).Value >= -300 Then
Workbooks("makis1.xls").Close savechanges:=False
End If
End If
End Sub
Can someone help please?
by mak » Sun Dec 13, 2009 10:24 am
mak wrote:mak wrote:I want to close a workbook when my exposure (cell L2) reach a limit lets say -300
I am trying to use the following code but nothing is happening...
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Columns.Count = 16 Then
If Cells(2, 12).Value >= -300 Then
Workbooks("makis1.xls").Close savechanges:=False
End If
End If
End Sub
Can someone help please?
by osknows » Sun Dec 13, 2009 11:18 am
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Columns.Count = 16 Then
If Cells(2, 12).Value >= -1040 Then
Thisworkbook.Close False
End If
End If
End Sub
by mak » Sun Dec 13, 2009 1:06 pm
by osknows » Sun Dec 13, 2009 1:18 pm
by osknows » Sun Dec 13, 2009 1:24 pm
mak wrote:** I also tried in another cell where if it is YES then workbook close & though the cell returns YES the workbook remains open.
The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.
Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.
Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.
He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.
We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.