Results 1 to 15 of 15

Thread: [RESOLVED x 2] Macro enabling in Excel

  1. #1

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Resolved [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)

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  4. #4
    Member
    Join Date
    Nov 2004
    Posts
    48

    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'?

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  6. #6

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: Macro enabling in Excel

    Quote Originally Posted by RobDog888
    Here it is. It has step by step instructions and all.

    http://www.vbforums.com/showthread.php?t=285212
    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)

  7. #7

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: Macro enabling in Excel

    Quote Originally Posted by RobDog888
    Here it is. It has step by step instructions and all.

    http://www.vbforums.com/showthread.php?t=285212
    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)

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  9. #9

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: [RESOLVED] Macro enabling in Excel

    Quote 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)

  10. #10
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  11. #11

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: [RESOLVED] Macro enabling in Excel

    Quote 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)

  12. #12

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    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)

  13. #13
    Frenzied Member cssriraman's Avatar
    Join Date
    Jun 2005
    Posts
    1,465

    Re: [RESOLVED] Macro enabling in Excel

    Quote 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.

  14. #14

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: [RESOLVED] Macro enabling in Excel

    Quote 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)

  15. #15

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: [RESOLVED] Macro enabling in Excel

    Quote 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
  •  



Click Here to Expand Forum to Full Width