Problems - Office 2003 to 2010

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:
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
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
What do you mean by "will not run"? Do none of the statements get executed at all? Or does it run but not do what you expected?

If you add a breakpoint at the beginning of the code and click the button, what happens?
 
Upvote 0
Try...

Code:
[font=Verdana]ActiveSheet.Unprotect[/font]

and

Code:
[font=Verdana]ActiveSheet.Protect[/font]
 
Upvote 0
Hi Ruddles,
Yes, no statements or commands run at all. Error reports are invariably "Compiler Error" and "Can't find project or library".
My IT guys merely say that 2010 is not backward compatible and re-do from scratch.
A. I find this very hard to believe, and,
B. I retire in a two months and don't have the time to do all again!!
Are you a 2010 user and have you come across this problem before?
Regards,
John
 
Upvote 0
My money's on Domenic's suggestion. Give your IT guys a link to this forum and suggest to them that they get up to speed.
 
Upvote 0
Hi Guys,
Thanks for your assistance, I think that I will retire quietly and leave the problems to someone else!
Regards,
IslandBuoy
 
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,794
Members
452,943
Latest member
Newbie4296

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top