ISLANDBUOY
New Member
- Joined
- Jun 10, 2006
- Messages
- 27
Hello All,
I have created several Excel 2003 workbooks/sheets utilising vba code to guide/assist users, these have worked perfectly for some years. My company has now changed to Office 2010 which appears not to be backward compatible with 2003. eg. This simple 2003 code will not run in 2010:
I have created several Excel 2003 workbooks/sheets utilising vba code to guide/assist users, these have worked perfectly for some years. My company has now changed to Office 2010 which appears not to be backward compatible with 2003. eg. This simple 2003 code will not run in 2010:
Code:
Private Sub CommandButton1_Click()
'Unhides non blank rows
Application.ScreenUpdating = False
Unprotect
For i = 1 To 160
If Cells(i, "a") = "" Then
Rows(i).Hidden = True
Else
Rows(i).Hidden = False
End If
Next i
Application.ScreenUpdating = True
Protect
End Sub
[uncode]
Can anyone advise on this problem?
Regards,
IslandBuoy