Hi There,
I have a workbook that will be shared by a range of users with different levels of exposure to excel. I need the calculation =IF(G2="","",G2/1.1) for all of colomn H if there is a value in G, but I need it to be hidden so noone can "accidentally" delete it. I cannot protect the sheet to hide it because the sheet is constantly being manipulated.
I have the following, which works in a test sheet to calculate GST (I actually want it to remove the GST amount from the whole number), but not in the actual workbook -
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng As Range, cell As Range
On Error GoTo exit_here
Set rng = Application.Intersect(Target, Range("A:A"))
If Not rng Is Nothing Then
Application.EnableEvents = False
For Each cell In rng
Select Case cell.Column
Case 1
If cell.Value > 0 Then
cell.Offset(, 1).Value = cell.Value * 0.11
End If
Case 2
If cell.Value < 0 Then
'nothing
End If
End Select
Next cell
End If
Application.EnableEvents = True
Exit Sub
exit_here:
Application.EnableEvents = True
End Sub
Please help!!
TA


Reply With Quote
