I have piece of code that is giving me problems.

sheets(1).Activate
Sheets(1).Cells.Select
The sheet it refers to is hidden (not very hidden). The code sometimes works and sometimes it returns the generic 1004 error which is the most frustrating thing.

Anyone know what i could be doing wrong, some time of setting maybe?

Cheers
Bruno