Results 1 to 6 of 6

Thread: dll or exe file creating

  1. #1

    Thread Starter
    Member
    Join Date
    May 2005
    Posts
    59

    Question dll or exe file creating

    Hello

    I wrote some VBA code in Outlook VBA editor and now i would like to distribute it. How do I create the installation exe and where the program code should be placed?

    Now i can see my code in Tools->macro-> VB editor, and i don't want users to see it there.In addition, every time i open outlook, i got "This Outlook Session contains macros... enable/disable.." message. So it must be some dll, perhaps ( i have no knowledge in this area )

    So, what do i need to create the installation file? Is it possible to do it from Outlook VB editor?

    Thanks,
    anastacia

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

    Re: dll or exe file creating

    The only version of Offic that did any kind of compiling was Office XP Developer version. It was developer extensions and other stuff.

    If you want to protect your vba code then you could provide a strong password and protect your project from viewing in the
    Tools > Project Properties... and the check Lock this project from viewing and supply your password. Note: Yes there are some VBA password
    crackers out there but if you create a strong password they usually can not crack it. I have not heard of too much positive feedback from
    anyone using these.

    To eliminate the "ThisOutlookSession contains macros message you can create a Digital Signature (private) and sign your code with it. Then
    trust your signature and it should go away.

    I have a CodeBank entry on creating a Digital Signature.
    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

    Thread Starter
    Member
    Join Date
    May 2005
    Posts
    59

    Re: dll or exe file creating

    hi..
    Thanks for the answer.
    In case i choose th password way, is it prevents from my users to create there own add-ins? And i don't actualy see how can i distribute the project this way? How will i do updates....
    I don't want to distribute Microsoft Office that contains my code, i want to distribute my code only..
    Is there some other way??

    10x,
    anastacia

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

    Re: dll or exe file creating

    Office is not redistributable but you code is. If you had VB6 you could creaate an Add-In dll wich would solve the problem.
    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

  5. #5

    Thread Starter
    Member
    Join Date
    May 2005
    Posts
    59

    Re: dll or exe file creating

    If i'll install the VB6 , should i change my VBA code that runs in Outlook vb6 editor or i can copy it to VB6 ??
    Is the relation to outlook application and MAPI .. differes from VB6(created dll)?
    Should i write the code from the beginning ? :'(

    10x

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

    Re: dll or exe file creating

    The vb6 addin code is almost the same but you should just need to make some minor changes at a minimum.
    There wont be the events in the Addin exactly the same but you just need to declare a WithEvents object of the type you need and
    then your bak in business.

    Outlook Application and MAPI are the same in VBA and VB6.
    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

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