Hi all,
I have created a commandbutton and following codes are associated with that :
[VBA]Private Sub CommandButton1_Click()
Sheets("Prob-1").Activate
Range("a1").Activate
End Sub
[/VBA]
However when I run this code then I get following error :
Run time error '1004'
activate method of range class failed.
In the mean time I have gone through the help page corresponding to that error. And as par it's advise I have checked "trust access to visual basic project" under tool -> macro -> security. But still that error exists.
Can anyone tell me where is the error on that? Your help will be highly appreciated.
Regards,