|
-
Aug 7th, 2008, 11:50 PM
#1
Thread Starter
Lively Member
[RESOLVED] How to set macro security [Word/Excel]
Hi
Is it possible to set the macro security always in low level through code? By executing the code automatically the security level option to be in low level.
Thanks
Ashok
Nothing is permanent except changes!..
-
Aug 8th, 2008, 08:26 AM
#2
Re: How to set macro security [Word/Excel]
I don't believe so.
Why would be want to change someone's macro security anyway?
-
Aug 8th, 2008, 05:13 PM
#3
Re: How to set macro security [Word/Excel]
you could look at the registry key for security level
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Aug 8th, 2008, 06:53 PM
#4
Re: How to set macro security [Word/Excel]
I don't think you can use your code to change Macro Security setting.
If you can do that then it defeats the purpose of Macro Security.
-
Aug 8th, 2008, 11:39 PM
#5
Thread Starter
Lively Member
Re: How to set macro security [Word/Excel]
Hi all
The options availble in macro security settings are very high, high, medium & low in 2003. I have some set of VBA code and want to execute in users system. There the macro security setting ll be high (default) and not able to execute my code until the user select the option low. So if there is any code to alter the seciruty level means then it ll be easy for us.
Thanks
Ashok
Nothing is permanent except changes!..
-
Aug 9th, 2008, 12:12 AM
#6
Re: How to set macro security [Word/Excel]
You do not alter the security settings as reasons mentioned. The way you do it is by signing your macro code with a Digital Certificate/Signature.
http://www.vbforums.com/showthread.php?t=402030
Another way is to write an AddIn and have the users install it.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Aug 12th, 2008, 01:03 AM
#7
Re: [RESOLVED] How to set macro security [Word/Excel]
Im sorry but posting a "hack" like that isnt within our policies. Bypassing security measures is an AUP violation. 
There is a proper way to do it so its within the users acceptance and a hackers way to do it which is what you posted. Sorry.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|