I have 2 worksheets.
Worksheet 1: Nicely put up data with rows like this
- Row1: 5 <-- This data comes from sheet 2
- Row2: 4 <-- This data comes from sheet 2
- Row3: 2 <-- This data comes from sheet 2
- Row4: =(Row1+Row2+Row3)/3 <-- Simple calculation from above cells.
I have this macro
Private Sub Worksheet_Change(ByVal Target As Range)
If IsError(Cells(139, 8).Value) Then
Call Sheet1.HideCharts
End If
End Sub
This works perfectly, and runs when an error occured, so if i put =5/0 (which gives an error) in row 1, the HideCharts macro runs.
However. The data comes from worksheet 2, and this data comes from cubes (database) and when that data changes to i.e. nothing, it will give #REF! on worksheet 1. which i understand is an error, however then the macro won't run. What am i doing wrong? I hope you understand my question.
- Edit: I found out that the macro actually semi-runs. It goes through however i have to double-click the cell and just press enter, and then it activates.