Sell Excel file securely - excel

I would like to sell an Excel file online. The main security goal is: one user / download.
I thought of an individual license key per download combined with somehow restricting the user to copy the content of the Excel file but at the same time make it possible to add content.
Any suggestions how to accomplish that or even have a better idea to solve the problem?
I would appreciate any help!

Look at LockXLS. I've used with some success. As others have mentioned, there is no built in way to protect your spreadsheet. Anyone can google how to use a hex editor to unlock Excel sheets and be on their merry way with your hard work in a matter of minutes, even if you are using some sort of vba protection. LockXLS is the best way I found to adequately protect a spreadsheet, but it does come with its own set of quirks. Download the trial and try it out. http://www.lockxls.com/product.asp

Related

How to encrypt a file with macros

I am looking to encrypt a file to require other users to enter a password before opening it. If I didn't have macros in my file, this would be very easy (file, protect workbook, encrypt), but I am getting an error that I cannot do this with my macros in place. How do I go about encrypting the file (I am brand new to coding, so I also need instructions on where to place the code etc.)
I found a video that let me protect sheets, but didn't encrypt them. I also tried the code at the bottom of this link, but I was getting errors stating that various aspects of the code were not defined.
https://answers.microsoft.com/en-us/msoffice/forum/all/workbook-encryption-with-macro-help/c0dd3057-7d4e-4b6a-a3c0-a2b66cd4d292
How do I accomplish this (seemingly) basic task?
Thank you!

Is There a way to recover a severely corrupted EXCEL FILE?

I'm currently working on my data using Ms.Excel.
But suddenly the file that I'm working in was broken. when I tried to open it again I get error where it contain "ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ" (See Picture).
Screenshoot Corrupted Excel File
The data was not really big, it's only arround 130KB. Besides, Autorecovery Mode was Turned On every 10 minutes. But I don't know How To use it.
I tried to solve the problem many times using below method:
First, I tried to check the "Ignore .... " in Excel Option.
Second, I tried Open and Repair the file, but still can't open it.
Third, I tried to use a third party, Using 2 Software (Stellar Phoenix Excel Repair And Recovery Tools For Excel). but Both not Working.
So I wonder if anyone can help me to get my data back? is there any way to recover the file? or is there a way to get the data within the file?
Thank you for all the suggestion you gave me, From the last comment I tried to get and extract the data using Programmer editor and using VBA, but both not give a good result, basically when you tried to extract the data when the file is corrupted it only get a unique character.
So here is my solution, since i'm using windows, I tried to Reinstall my Ms.Office and recover my Excel file on mac, and boom the magic worked.
Once again, thanks for your help.

How to store macros in one file shared among several users? (not PERSONAL.xls)

I have a 20 excel files with Automation written in VBA where the workflow is similar but there is some customizations in each of the files. I would like to have 20 files, each file per task, but I would like to put all macros into one file, with all the customizations. This will simplify fixing/changing the automation.
I want to have basically one file GlobalMacros.xls somewhere in a shared drive which contains all the modules that do not contain customizations, and only have references to it in the proper files.
Personal.xls is not an answer as I do not want users/team members to feel the changes at all.
Please tell me if there is a solution and what are downsides.
Solution 1:
My solution is to make the module in GlobalMacro.xls and then add just a reference to the module in each file. The downside is it could slow down the execution of the macros because the GlobalMacros.xls will be opened and closed in the background each time any module is called out. Also is it possible for several users using these macros at the same time?
Has anyone got any better solutions? Maybe someone had a similar problem in the past.
I'll go into a bit more detail about how to use XLAM files properly.
In a network environment, you will want to keep a local copy of the XLAM where you make changes and updates, and once all glitches are worked out, you then copy it to the server where everyone else accesses it. You will want to also make the server copy read-only, which must be reset each time you copy the file to the server. If you dont make it read-only, you will not be able to copy the updated file to the server while anyone has Excel currently open.
In addition, when the users add the Add-On to their Excel, they will be prompted to copy the XLAM file to their local computer, to which they should reply No, as they want to be able to run off the server copy so they can get your updates. I have found that most people instinctively think they should answer Yes to that question.
If they end up answering Yes, then the only way to fix it is to edit thier registry and remove the reference, and then re-add the Add-On.

how to keep all files by unduplicating them

This is a bit of an odd request as its not necessarily coding related, but I have been using SHA256 to spot duplicate files. Unfortunately for one reason or another all duplicate files need to be kept and need to be amended slightly for a new SHA256 to be generated.
There are many solutions out there that will delete duplicate files etc, but I need a solution that will look for duplicates and as it finds a duplicate, try to unduplicate it.
As I am using pdf, doc and docx files, I was thinking of a solution that adds a blank page at the end of the document with a character. I have been doing this currently manually but something automated would be of much help.
Has anyone come across this issue or know of a possible solution?
Thank you for your help in advance,
Panos

Excel open same names files

I need to create a button in Excel that opens a dialog box and I select the file that I recorded on the second sheet, but I also automatically select other files with the same name differs just ending. So I need to choose one file, and always record 2-3 more with the same name and to open a new worksheet. How to do it?
What you need to select the file abc.txt and uploaded to other files abc.ydd and abc.dyk name will always be the same only the ending will be different.
An advice for any work you are doing: Break down your big task into small steps as often as needed until the steps are small enough so that you know how to process them.
On your specific programming task, this means, you should break it down into:
You need a button on one of the excel sheets.
That button has to open a dialog box for selecting a file
I don't know whether it can be any arbitrary file or a specific one, as you wrote that the file was recorded on another sheet. I think that makes no difference at all.
After finishing the file selection, you have to evaluate the result of the dialog box (OK -> which file, ABORT -> do nothing).
Take the file name, remove the extension and search for other files (in the same directory or elsewhere) with that name.
I don't know why you want to open another worksheet. Of course you can do that, but if you want to show the content of that files in the worksheet, they better be excel files.
How you do these suggested steps is something you need to find out by yourself. Or you are lucky and find someone else who has plenty of free time to do that for you, but I don't think you will be that lucky, especially after providing a quite vague description of your problem.
In general, stackoverflow is for asking for solutions to specific programming problems, not for providing ready-to-use solutions for beginners. Take a look at VBA manuals and tutorials. They can be found widely across the internet and in book stores.

Resources