Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Enable To Run Macros
Ms Excel 2002
Dear Sir, how are you, basically i am working with a Bank & i have been assigned to collect some data from Branches on Excel Sheets, the problem lies that i dont want that they be able to ADD any Formula into that sheet but only my formulas can be used! so that there should be no WRONG Sum values! so, what i have done is that i have search trhe folllowing code Private Sub Worksheet_Change(ByVal Target As Range) On Error GoTo ws_exit Application.EnableEvents = False If Target.HasFormula Then Target.Value = "" MsgBox "Please Kindly dont Add any Farmula! Thanks", vbOKOnly End If ws_exit: Application.EnableEvents = True End Sub but the problem is TO ENABLE RUNING MACROS, & i dont think that all the users have good understanding with Excel and Security Option! i know you might take it as Hacking, but By GOD i dont mean or what to do any Hacking, Just want To AUTO ENABLE Running of MACROS without User permission i hope you understand my pain! & like to help me out! thanking you in advance regards, |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Enable To Run Macros
One way would be to protect the entire contents of the spreadsheet from any
when you deliver it and only by enabling macros and running them could ANY data be written to the spreadsheet because only then would the protection be taken off. You'll have to plan how to make sure cell contents get relocked, I suggest on unloading or closing have it re-lock everything. Good luck. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
choose default macros Not Enabled / Macros Enable Setting | Excel Programming | |||
VBA select default Don't Enable / Enable macros Setting | Excel Programming | |||
Enable macros? | Excel Worksheet Functions | |||
can not enable macros | Excel Worksheet Functions | |||
Suppress the Disable Macros / Enable Macros Dialog | Excel Programming |