perola.rike
Board Regular
- Joined
- Nov 10, 2011
- Messages
- 151
I have a strange bug (?) in my workbook. When I change a cell in the active sheet, doesn't matter what cell, the content from row 5 in another sheet appears in row 5 in the active sheet.
The text on the active sheet dissapears when I scroll down on the worksheet and up again, It is not placed physically in the cell. It happens almost all the time.
On the pictures attached - text from sheet Rapport row 5 appears on sheet Testprofil row 5, 1st column (Norwegian).
I really have no idea where to look for a solution to make this text stop appearing. Any help are really appreciated!
This is a macroactivated workbook. I only have one sheet with a workbook_change code, on the sheet Questionnaires:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address(0, 0) = "G1" Then
Application.ScreenUpdating = False
Range(Columns("J"), Columns(Columns.Count)).EntireColumn.Hidden = True
Dim c As Range
For Each c In Range("J4:XX4").Cells
On Error Resume Next
If c.Value = Range("G1") Then
c.EntireColumn.Hidden = False
End If
Next c
Application.ScreenUpdating = True
End If
End Sub
The text on the active sheet dissapears when I scroll down on the worksheet and up again, It is not placed physically in the cell. It happens almost all the time.
On the pictures attached - text from sheet Rapport row 5 appears on sheet Testprofil row 5, 1st column (Norwegian).
I really have no idea where to look for a solution to make this text stop appearing. Any help are really appreciated!
This is a macroactivated workbook. I only have one sheet with a workbook_change code, on the sheet Questionnaires:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address(0, 0) = "G1" Then
Application.ScreenUpdating = False
Range(Columns("J"), Columns(Columns.Count)).EntireColumn.Hidden = True
Dim c As Range
For Each c In Range("J4:XX4").Cells
On Error Resume Next
If c.Value = Range("G1") Then
c.EntireColumn.Hidden = False
End If
Next c
Application.ScreenUpdating = True
End If
End Sub