Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a master file that requires data feeds from multiple users. The way
it works is as follows: the user maintains their data in a separate Excel file, then clicks a button to UPLOAD their data into the master file (which basically opens the master file, then copies/pastes the data in). I want to password protect the master file so no one else can make changes with the exception of this uploaded data. How do I update my VB code to "enter" the file password when opening the master file during this upload process, while ensuring the user does not see or know the password? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
put somthing like this after you open the master file
Worksheets(1).Unprotect "password" put somthing like this before closing master file Worksheets(1).Protect "password", True and im assuming you have all cells protected "JDaywalt" wrote: I have a master file that requires data feeds from multiple users. The way it works is as follows: the user maintains their data in a separate Excel file, then clicks a button to UPLOAD their data into the master file (which basically opens the master file, then copies/pastes the data in). I want to password protect the master file so no one else can make changes with the exception of this uploaded data. How do I update my VB code to "enter" the file password when opening the master file during this upload process, while ensuring the user does not see or know the password? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Actually, it is not the workSHEET that is protected -- it is the workBOOK.
In other words, normally, when you open the master file, it tells you it can only be opened in Read Only mode. The user would then have to do a File... SaveAs if they wanted to save changes (the original file would remain intact). For this purpose, however, when the user selects the "upload" macro, I want the master file to be opened with the password so the macro can be copy in the user's data, and resave the file with the normal password. Does that make sense? "Mike" wrote: put somthing like this after you open the master file Worksheets(1).Unprotect "password" put somthing like this before closing master file Worksheets(1).Protect "password", True and im assuming you have all cells protected "JDaywalt" wrote: I have a master file that requires data feeds from multiple users. The way it works is as follows: the user maintains their data in a separate Excel file, then clicks a button to UPLOAD their data into the master file (which basically opens the master file, then copies/pastes the data in). I want to password protect the master file so no one else can make changes with the exception of this uploaded data. How do I update my VB code to "enter" the file password when opening the master file during this upload process, while ensuring the user does not see or know the password? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ActiveWorkbook.Protect "password", True
ActiveWorkbook.Unprotect "password" This should work the same as my other post if not post you code and I 'll see what I can do "JDaywalt" wrote: Actually, it is not the workSHEET that is protected -- it is the workBOOK. In other words, normally, when you open the master file, it tells you it can only be opened in Read Only mode. The user would then have to do a File... SaveAs if they wanted to save changes (the original file would remain intact). For this purpose, however, when the user selects the "upload" macro, I want the master file to be opened with the password so the macro can be copy in the user's data, and resave the file with the normal password. Does that make sense? "Mike" wrote: put somthing like this after you open the master file Worksheets(1).Unprotect "password" put somthing like this before closing master file Worksheets(1).Protect "password", True and im assuming you have all cells protected "JDaywalt" wrote: I have a master file that requires data feeds from multiple users. The way it works is as follows: the user maintains their data in a separate Excel file, then clicks a button to UPLOAD their data into the master file (which basically opens the master file, then copies/pastes the data in). I want to password protect the master file so no one else can make changes with the exception of this uploaded data. How do I update my VB code to "enter" the file password when opening the master file during this upload process, while ensuring the user does not see or know the password? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Password protected workbook | Excel Discussion (Misc queries) | |||
password protected workbook | Excel Worksheet Functions | |||
How To Get Into a Password Protected Workbook | Excel Programming | |||
Multiple workbook user's with Master workbook - all password protected | Excel Discussion (Misc queries) | |||
Open a password protected excel workbook from second workbook to fetch data using dynamic connection | Excel Programming |