|
-
Jan 13th, 2006, 05:12 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] hiding vba code in outlook
Hey,
with this forum great help, I've managed to write a small vba code for outlook.
I would like to:
1. distribute it to other computers (I guess I can copy paste the code but I'd like to know a more reasonable way) and,
2. hide it from the users (so that if they press alt+f11 they won't see my code)
thanks,
-
Jan 13th, 2006, 11:47 AM
#2
Re: hiding vba code in outlook
From the VBA IDE in Outlook "Tools > Project Properties... > Protection tab > check "Lock project from viewing" > enter a password and verify > Ok".
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 
-
Jan 13th, 2006, 08:05 PM
#3
Thread Starter
Fanatic Member
Re: hiding vba code in outlook
great. that helps a lot. what about distributing the code to other users. do I export each object to files and then import them back, or is there a way to export/ import the whole project?
by the way how do I credit you in this forum?
-
Jan 13th, 2006, 11:29 PM
#4
Re: hiding vba code in outlook
If your users are not using any Outlook VBA code already then you can copy the .OTM file, which contains the VBA code for thisoutlooksession, and paste it in the users directory while Outlook is closed.
C:\Documents and Settings\VB-Guru\Application Data\Microsoft\Outlook\VbaProject.OTM
Edit:
by the way how do I credit you in this forum?
You can do it by clicking on the "Rate This Post" link for the post you would like to rate, either positive or negative and supply a comment. Also, see the link in my signature on "Reps and Ratings" for details about the Rep system.
Last edited by RobDog888; Jan 13th, 2006 at 11:42 PM.
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 
-
Jan 14th, 2006, 04:29 AM
#5
Thread Starter
Fanatic Member
Re: hiding vba code in outlook
when pressing rate this post i get "you must spread some reputation before giving it to robdog" but that's the first time I've done this.
anyway, you're a true guru!
thank you,
-
Jan 14th, 2006, 09:19 AM
#6
Re: [RESOLVED] hiding vba code in outlook
I see that you havent rated me before. I need to have MartinLiss check this out to make sure its not a bug of somekind. I'll get back to you.
Thanks
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 
-
Jan 14th, 2006, 09:24 AM
#7
Re: [RESOLVED] hiding vba code in outlook
Turns out that you did rate me back on 29th Dec 2005 14:13. So this means that you need to Rate 10 other members before you can rate me again.
Oh well.
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
|