I often wonder if there is a better way to "turn off" sections of code, other than putting ' in front of them.
For example, I want to disable some lines of code, but not remove them because I may decide to use them later. Currently I do the following:
I just wonder if there is a better way than this, like a built in facility within Excel to disable code?
For example, I want to disable some lines of code, but not remove them because I may decide to use them later. Currently I do the following:
Code:
If Buy_Option Then
Ticket.StopPrice_Box.Value = Application.WorksheetFunction.Fixed((Ticket.Order_Box.Value - _
(Ticket.StopPips_Box.Value / iFact)), iDec, True)
Ticket.StopAmount_Box.Value = Application.WorksheetFunction.Fixed((((Ticket.Order_Box.Value - _
Ticket.StopPrice_Box.Value) * iFact) * Ticket.Stake_Box.Value), 2)
End If
'If Defaults.Priv_Tog.Caption = "Privacy Off" Then
' If Trades.Cells(2, 19).Value > 0 And Trades.Cells(2, 19) <> "" And _
' Ticket.StopAmount_Box <> "" And Ticket.StopAmount_Box.Value <> 0 Then
' Ticket.iCapital_Box = Round(((Ticket.StopAmount_Box.Value / _
' Trades.Cells(2, 19).Value) * 100), 1)
' Else
' Ticket.iCapital_Box = ""
' End If
'End If
I just wonder if there is a better way than this, like a built in facility within Excel to disable code?