How to really protect VBA code in dotm file? [closed] - vba

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
We can set password to our project:
In VBA Editor: Tools > Properties > Protection (Set pass and check "lock for viewing protection").
But there is easy way to get access to code.
I don't want to describe, but its easy (with hexeditor).
Is the way to really secure my code in .dotm file (without loosing .dotm functionality as Word template)?

There is not really a way to make VBA code secure beyond using password protection. There is an article I found in doing a Web Search on Obstrafication for VBA, but if it was me, I wouldn't do it.
I recommend that you investigate building your solution .Net and VSTO. With compiled code, you can then Obstrficate it with products like .Net Reactor.

Related

Lucene.net visual basic.net [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I want to create a simple Visual Basic.NET solution using LUCENE.NET, indexing files in a folder.
I have searched all day, but the example code that I find is in C#.
Can someone please help?
Thanks
I wish I had a better answer for you but I suspect the best approach is to use a C# to VB.Net code conversion tool. Like you, I have never seen a VB code example for using Lucene.Net. With one of these tools, you can paste the C# code into a text box, hit the convert button and it will display the theoretically equivalent VB.Net code.
Here are a couple code converters that may be useful for you:
https://converter.telerik.com/
https://codeconverter.icsharpcode.net/
https://marketplace.visualstudio.com/items?itemName=SharpDevelopTeam.CodeConverter

Is there a way to use VBA to modify other VBA code? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I don't know where to start with this. If there is a way, all I need is an object name or collection name, so I can look up the feature on Microsoft's site, and go from there. But, searching there directly didn't turn anything up.
You're probably looking for the VBE Extensibility Library.
However note that depending on what you're actually trying to do ("modify other VBA code"), it may be very hard, if not impossible to implement.
The library will let you iterate modules, locate their members, pull the actual code into strings (from entire modules or just a given procedure)... but that's as granular as it gets.
If you're trying to do anything that requires understanding of the code's semantics, the VBIDE API won't be enough: you need a lexer and a parser for that... and I've yet to see a successful lexer/parser for VBA, written in VBA.
Good luck!

Importing CSV files to access using VB or Batch [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have a bunch of excel files that need to imported into MS access tables everyday. I was looking for a way to automate this using Batch or VB. Is this possible using batch only? If not, how do i come about doing this with vb, i have no experience with vb and have no clue where to start. Can vb scripts be written on access only or requires any other programs?
Regards,
VBA will best suited for this task. Every MS Offfice program have developer section on the ribbon (but you have to enable it), where you can enter VBA editor and wirte scripts there.

JIRA: Create API documents [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
Is it possible to create API documents on JIRA? If yes then how? The currently employed approach involves creating / updating a Microsoft Word document and replacing it on Confluence. This approach though fulfills the requirement but do not seems a better way for API documentation management.
Thanks
Uploading Microsoft Word documents is probably the worst way.
Although I find Confluence (and JIRA) to be terrible, I write API docs using a table and it works well:
Once you have a template, copy and paste to grow the docs.

How can I make a file that can only be read by my application? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I want to know if there's a way to create a file that only my application can read but other programs (eg: notepad) can't
For example:
i create a config file from my application, and if i open it with notepad it will be garbled nonsense, like:
½ÁoLG0%­Ö9)9Ìm•~0ý<öKfƒ”ü9´~<ƒ\,Aëxzºv‡#u}ž¹ñ7µK³¨]fÛn {盞Ժî*Ò\úǃ«E%ñ
x#Â˼†ZÜŸ¹>ÇðÏ•Þ¢dóü0¹ñS`|ÛV‰‡Fëm¬2°,üdVNÆ$å^Rf­¾!v¼ñ
¡ýù´ÿËjC&¤œšÍÉ]ËÈFæTñq%#++ÜÝ[êq"#hbÍj‰Œ‚äd¡†¸<×sæå‘óùOë\2rxy
You're looking for encryption, if you want something readable only to your application but not the end user.
I don't know VB.NET but a quick google search shows me this question which has a pretty well written answer, that seems to explain how to encrypt a file in VB.NET