FDibbins — Thank you. Yes, I think PW protection is necessary — for VBA Project Password — not the file. Unfortunately, If the file requires a PW, and I sell users the PW, then they can share the PW as easily as they share the file.
Logit — Thank you. I learned how to protect a header and footer with VBA code. The code was kindly shared here: extendoffice.com/documents/excel/4135-excel-protect-header-and-footer.html
The code sets the header and footer. I'd like to do the same and use a user's email address in the header or footer. But how can the user's email be automatically inserted into the code?
I don't want to manually change the code for each user. Better if the user's email is a variable.
I'm thinking, maybe this would work...
3-Step Process
1. Collect User's Email - This step is performed by Wordpress — not Excel — when a user pays for the file.
2. Prep an XLSM File on the Server - Preparing the user's file includes:(a) Copying the master file
(b) Opening the copy
, and (c) Setting a variable — in Excel — equal to the user's email
.
3. Save and Send XLSM Copy to User - The user's file is saved and sent to the user.
Variable
The variable set is step 2(c) assumes that the VBA code shared on extendoffice's website can be modified to use a variable. Currently, the code uses constants, or hard-coded values.
Next Steps?
So, I guess it boils down to this: Is the process doable? And can a variable be used in VBA?
=L=
Bookmarks