Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
I'd like to open my VBA (protected by a password), delete and replace a module (macro, courtesy of Mr. Chip Pearson's website), protect the vba project with the same password, save the file and exit. When I posted to request the assistance to write a macro for the above project, I was informed that one CANNOT open and close the VBA project with a macro. It's hard to believe that with the sophistication of the program, a macro command for the above project is not available. Thank you. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I hate to burst your bubble, but you just can't if there is a password on the
file. There is nothing in the code that lets you get around a password. go into VBA and press F2, select VBIDE for your library and search around for anything relating to password access. It doesn't exist. The most it will let you do is see if the file is protected... -- JNW "Danny" wrote: Hi, I'd like to open my VBA (protected by a password), delete and replace a module (macro, courtesy of Mr. Chip Pearson's website), protect the vba project with the same password, save the file and exit. When I posted to request the assistance to write a macro for the above project, I was informed that one CANNOT open and close the VBA project with a macro. It's hard to believe that with the sophistication of the program, a macro command for the above project is not available. Thank you. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I'm sorry I did not make myself clear. I know the password because its my own
workbook. So, can a macro be written for it? Thanks again. "JNW" wrote: I hate to burst your bubble, but you just can't if there is a password on the file. There is nothing in the code that lets you get around a password. go into VBA and press F2, select VBIDE for your library and search around for anything relating to password access. It doesn't exist. The most it will let you do is see if the file is protected... -- JNW "Danny" wrote: Hi, I'd like to open my VBA (protected by a password), delete and replace a module (macro, courtesy of Mr. Chip Pearson's website), protect the vba project with the same password, save the file and exit. When I posted to request the assistance to write a macro for the above project, I was informed that one CANNOT open and close the VBA project with a macro. It's hard to believe that with the sophistication of the program, a macro command for the above project is not available. Thank you. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
There have been posts that suggest that using Sendkeys to go through the menu
system and enter the password, but that's not a robust technique. I'd never use it in anything that I needed to depend on (or give to others). Danny wrote: I'm sorry I did not make myself clear. I know the password because its my own workbook. So, can a macro be written for it? Thanks again. "JNW" wrote: I hate to burst your bubble, but you just can't if there is a password on the file. There is nothing in the code that lets you get around a password. go into VBA and press F2, select VBIDE for your library and search around for anything relating to password access. It doesn't exist. The most it will let you do is see if the file is protected... -- JNW "Danny" wrote: Hi, I'd like to open my VBA (protected by a password), delete and replace a module (macro, courtesy of Mr. Chip Pearson's website), protect the vba project with the same password, save the file and exit. When I posted to request the assistance to write a macro for the above project, I was informed that one CANNOT open and close the VBA project with a macro. It's hard to believe that with the sophistication of the program, a macro command for the above project is not available. Thank you. -- Dave Peterson |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Dave,
The reason why I need it is, I let my officemates use my workbook. In order for them to print is, they have to have a "printing password" that I provide. They usually print about 26 worksheets. Everytime they have to print a worksheet, they have to use the password. I'd like to change the Before Print Event (from Mr. Chip Pearson's website) to "Cancel = False", but is limited to print 30 times so, they won't have to use the "printing password" everytime. I am only giving the "printing password" not the "VBA Password" to other users. Thank you. End Sub "Dave Peterson" wrote: There have been posts that suggest that using Sendkeys to go through the menu system and enter the password, but that's not a robust technique. I'd never use it in anything that I needed to depend on (or give to others). Danny wrote: I'm sorry I did not make myself clear. I know the password because its my own workbook. So, can a macro be written for it? Thanks again. "JNW" wrote: I hate to burst your bubble, but you just can't if there is a password on the file. There is nothing in the code that lets you get around a password. go into VBA and press F2, select VBIDE for your library and search around for anything relating to password access. It doesn't exist. The most it will let you do is see if the file is protected... -- JNW "Danny" wrote: Hi, I'd like to open my VBA (protected by a password), delete and replace a module (macro, courtesy of Mr. Chip Pearson's website), protect the vba project with the same password, save the file and exit. When I posted to request the assistance to write a macro for the above project, I was informed that one CANNOT open and close the VBA project with a macro. It's hard to believe that with the sophistication of the program, a macro command for the above project is not available. Thank you. -- Dave Peterson |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I wouldn't expect most users feel comfortable inside the VBE modifying code.
I don't quite understand what you're doing, but if you allow the users to break the rule about number of hardcopies, why make it difficult? Why not just let them do it without any interference? Danny wrote: Hi Dave, The reason why I need it is, I let my officemates use my workbook. In order for them to print is, they have to have a "printing password" that I provide. They usually print about 26 worksheets. Everytime they have to print a worksheet, they have to use the password. I'd like to change the Before Print Event (from Mr. Chip Pearson's website) to "Cancel = False", but is limited to print 30 times so, they won't have to use the "printing password" everytime. I am only giving the "printing password" not the "VBA Password" to other users. Thank you. End Sub "Dave Peterson" wrote: There have been posts that suggest that using Sendkeys to go through the menu system and enter the password, but that's not a robust technique. I'd never use it in anything that I needed to depend on (or give to others). Danny wrote: I'm sorry I did not make myself clear. I know the password because its my own workbook. So, can a macro be written for it? Thanks again. "JNW" wrote: I hate to burst your bubble, but you just can't if there is a password on the file. There is nothing in the code that lets you get around a password. go into VBA and press F2, select VBIDE for your library and search around for anything relating to password access. It doesn't exist. The most it will let you do is see if the file is protected... -- JNW "Danny" wrote: Hi, I'd like to open my VBA (protected by a password), delete and replace a module (macro, courtesy of Mr. Chip Pearson's website), protect the vba project with the same password, save the file and exit. When I posted to request the assistance to write a macro for the above project, I was informed that one CANNOT open and close the VBA project with a macro. It's hard to believe that with the sophistication of the program, a macro command for the above project is not available. Thank you. -- Dave Peterson -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excell error "Can't find Project or Library" Project VBAProject | Excel Worksheet Functions | |||
project | Excel Worksheet Functions | |||
Your opinion | Excel Discussion (Misc queries) | |||
How to convert MS Project to MS Excel. I don't have MS Project. | Excel Discussion (Misc queries) | |||
Synchronizer: in my opinion, best diff tool for excel. | Excel Discussion (Misc queries) |