quote:
--------------------------------------------------------------------------------
In Excel 2002, you must have "Trust Access To Visual Basic Project" enabled. To enable this setting, go to the Tools menu in Excel, choose Macros, Security, then the "Trusted Sources" tab, and put a check next to "Trust Access To Visual Basic Project". Otherwise, you will get errors.
--------------------------------------------------------------------------------
Thank for your replies:
Norie, deleting VB has a purpose, this is the project requirement to do so, & the project while being operated by users must also be protected. But users are authorized to "click a button" which will do certain actions along with deleting VB's for another purpose, which is a must for the project.
Wish i could explain it any better.
Taz, you are right, i was going to post another question for the sendkeys to check"Trust Access to Visual Basic Project". Do you think it is a good idea to do this ? I mean, All things work perfectly, the way i want it, but for users, if "Trust Access to Visual Baisic Project" is not checked, it gives error.
Can i please have the "Sendkeys" to check "Trust Access to Visual Basic PRoject" or this is not a very good idea ?
Anyway, I have tried this, think something is not correct.
Code:
Sub Rectangle1_Click()
Application.SendKeys "%T"
Application.SendKeys "E"
Application.SendKeys "S", True
Application.SendKeys "^{PGDN}"
Application.SendKeys "{TAB}"
Application.SendKeys "{TAB}"
Application.SendKeys "{SPC}"
End Sub
Warm Regards,
Farah
P.S. I also look forward for some help on the main question.