|
-
Oct 28th, 2005, 09:27 AM
#1
[RESOLVED x 2] Macro enabling in Excel
I have a similar question to this one.
I want to enable the macros without being prompted when I open a specific Excel spreadsheet. I know I can disable this by checking the checkbox or in the "general" tab under options. But I want to be asked about macro-enabling when I open any other Excel file. It is possible to change this setting for individual files?
Last edited by krtxmrtz; Nov 24th, 2005 at 04:06 AM.
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Oct 28th, 2005, 09:34 AM
#2
Re: Macro enabling in Excel
You can do it for your system only but you may loose the prompt for all. You need to create a Digital Certificate and sign your Excel VBA code with it. Then In your security settings set it to high (only signed macros will run).
I am not sure if it will not prompt you if you have it set to medium. Test it out and let me know. I have a codebank thread on creating private Digital Certificales and how to make them Trusted. I'll post the link.
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 
-
Oct 28th, 2005, 09:36 AM
#3
Re: Macro enabling in Excel
Here it is. It has step by step instructions and all. 
http://www.vbforums.com/showthread.php?t=285212
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 
-
Oct 28th, 2005, 10:16 AM
#4
Member
Re: Macro enabling in Excel
so if you were to create a digital certificate for a program that was to run from a network drive, any of the machines logging onto the network and opening the file could do so with the security set to 'High'?
-
Oct 28th, 2005, 11:08 AM
#5
Re: Macro enabling in Excel
No, you need to make DS' on each workstation. A private DS is not for any type of Public production of a program as a person could modify the app and have it be malicious and it would be tracked back to the system that created the DS. For public production apps you need a Public DS like the ones from Verisign at $400 a year.
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 
-
Oct 29th, 2005, 04:13 PM
#6
Re: Macro enabling in Excel
 Originally Posted by RobDog888
It works nicely, exactly what I need.
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Nov 22nd, 2005, 06:55 AM
#7
Re: Macro enabling in Excel
 Originally Posted by RobDog888
By the way... can you create the trusted digital certificate for Office < 2003 as well?
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Nov 22nd, 2005, 01:13 PM
#8
Re: [RESOLVED] Macro enabling in Excel
Yes, as long as you have the SELFCERT.EXE file in the desired version. I know Office 2002 (XP) has it but I am not 100% sure 20000 has it.
Hmm, just thinking if you create a Cert in one Office version and upgrade your Office to another would you be able to still sign new projects with the cert or do you need to create another in the new version?
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 
-
Nov 22nd, 2005, 06:06 PM
#9
Re: [RESOLVED] Macro enabling in Excel
 Originally Posted by RobDog888
Yes, as long as you have the SELFCERT.EXE file in the desired version. I know Office 2002 (XP) has it but I am not 100% sure 20000 has it.
Hmm, just thinking if you create a Cert in one Office version and upgrade your Office to another would you be able to still sign new projects with the cert or do you need to create another in the new version?
At any rate I guess I can't just copy the selfcert file I have in my WinXP + Office 2003 to a Win98/Office 97 computer and expect it to work... But what the heck, I'm going to try just in case.
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Nov 22nd, 2005, 06:20 PM
#10
Re: [RESOLVED] Macro enabling in Excel
You could try running the selfcert on your win98 system and see if it generates a cert. If it does then sign your project and test it out. Im not sure if 97 supporst signing of projects.
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 
-
Nov 23rd, 2005, 07:21 AM
#11
Re: [RESOLVED] Macro enabling in Excel
 Originally Posted by RobDog888
You could try running the selfcert on your win98 system and see if it generates a cert. If it does then sign your project and test it out. Im not sure if 97 supporst signing of projects.
Well, I tried to run selfcert.exe under Win98 but it complained about makecert.exe missing in the same directory, so I'll have to copy this one from the home computer and try again tomorrow.
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Nov 23rd, 2005, 02:41 PM
#12
Re: [RESOLVED] Macro enabling in Excel
By the way!!!... is there any means to protect the vba code within the Word document? I'm trying to prevent people from copying the document, printing it and screen shooting it... I'm almost done but I still must find the way to disable access to the vba code. How come I didn't think of this?
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Nov 23rd, 2005, 05:48 PM
#13
Re: [RESOLVED] Macro enabling in Excel
 Originally Posted by krtxmrtz
By the way!!!... is there any means to protect the vba code within the Word document? I'm trying to prevent people from copying the document, printing it and screen shooting it... I'm almost done but I still must find the way to disable access to the vba code. How come I didn't think of this?
Goto Tools -> Project Properties and select the tab protection and check the option "Lock project for viewing" and enter your password, confirm password.
This will protect your vba code from others. The persons who knows the password can access the vba code.
CS.
-
Nov 24th, 2005, 04:03 AM
#14
Re: [RESOLVED] Macro enabling in Excel
 Originally Posted by cssriraman
Goto Tools -> Project Properties and select the tab protection and check the option "Lock project for viewing" and enter your password, confirm password.
This will protect your vba code from others. The persons who knows the password can access the vba code.
CS.
Thank you cssriraman, I guess I now have a well protected word document. I hope it's quite foolproof and even damnfoolproof
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Nov 24th, 2005, 04:54 AM
#15
Re: [RESOLVED] Macro enabling in Excel
 Originally Posted by RobDog888
Im not sure if 97 supporst signing of projects.
I'm afraid it doesn't, at least I've been unable to find it in the menus.
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
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
|