Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Dear all,
I would like to protect my spreadsheet so that others might use it. However when I do so the macros in the workbook do not run. I may select the button that they are attached to but the marco itself doesn't run. Which settings do I change to alter this situation? Thanks in advance, Neil |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You have to turn off protection, run code, then turn it back on all through
code. Just record a macro of you protecting the sheet, then unprotect it. Look at the code that is created in the module and you will see what it takes to unprotect. Put the unprotect at the beginning and the protect at the end. -- -John Please rate when your question is answered to help us and others know what is helpful. "Neil Pearce" wrote: Dear all, I would like to protect my spreadsheet so that others might use it. However when I do so the macros in the workbook do not run. I may select the button that they are attached to but the marco itself doesn't run. Which settings do I change to alter this situation? Thanks in advance, Neil |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Do the macros not even start or do they start and fail?
If they don't start, make sure your users are enabling macros when they open your workbook. If they start and then fail, then you may be trying to do stuff that isn't allowed on a protected worksheet. If that's the case, you can unprotect the worksheet at the top of your macro, do the work and then reprotect the worksheet right before your macro ends. Neil Pearce wrote: Dear all, I would like to protect my spreadsheet so that others might use it. However when I do so the macros in the workbook do not run. I may select the button that they are attached to but the marco itself doesn't run. Which settings do I change to alter this situation? Thanks in advance, Neil -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
That has worked well John, thank-you. However this doesn't enable me to set
a password within the workbook thereby others may still alter the spreadsheet. Is there a way to enable Macros to run if a set a password is imputted when protection the workbook? "John Bundy" wrote: You have to turn off protection, run code, then turn it back on all through code. Just record a macro of you protecting the sheet, then unprotect it. Look at the code that is created in the module and you will see what it takes to unprotect. Put the unprotect at the beginning and the protect at the end. -- -John Please rate when your question is answered to help us and others know what is helpful. "Neil Pearce" wrote: Dear all, I would like to protect my spreadsheet so that others might use it. However when I do so the macros in the workbook do not run. I may select the button that they are attached to but the marco itself doesn't run. Which settings do I change to alter this situation? Thanks in advance, Neil |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
That has worked well Dave, thank-you. However this doesn't enable me to set
a password within the workbook thereby others may still alter the spreadsheet. Is there a list somewhere of what is allowed and not allowed when the spreadsheet is protected? Is there a way to enable Macros to run if a set a password is inputted when protection the workbook? "Dave Peterson" wrote: Do the macros not even start or do they start and fail? If they don't start, make sure your users are enabling macros when they open your workbook. If they start and then fail, then you may be trying to do stuff that isn't allowed on a protected worksheet. If that's the case, you can unprotect the worksheet at the top of your macro, do the work and then reprotect the worksheet right before your macro ends. Neil Pearce wrote: Dear all, I would like to protect my spreadsheet so that others might use it. However when I do so the macros in the workbook do not run. I may select the button that they are attached to but the marco itself doesn't run. Which settings do I change to alter this situation? Thanks in advance, Neil -- Dave Peterson |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I don't understand.
If you have a worksheet protected, then you know the password. And I would guess that you have both locked and unlocked cells in that worksheet. The users should be able to change the unlocked cells on that protected sheet with no problems. Neil Pearce wrote: That has worked well Dave, thank-you. However this doesn't enable me to set a password within the workbook thereby others may still alter the spreadsheet. Is there a list somewhere of what is allowed and not allowed when the spreadsheet is protected? Is there a way to enable Macros to run if a set a password is inputted when protection the workbook? "Dave Peterson" wrote: Do the macros not even start or do they start and fail? If they don't start, make sure your users are enabling macros when they open your workbook. If they start and then fail, then you may be trying to do stuff that isn't allowed on a protected worksheet. If that's the case, you can unprotect the worksheet at the top of your macro, do the work and then reprotect the worksheet right before your macro ends. Neil Pearce wrote: Dear all, I would like to protect my spreadsheet so that others might use it. However when I do so the macros in the workbook do not run. I may select the button that they are attached to but the marco itself doesn't run. Which settings do I change to alter this situation? Thanks in advance, Neil -- Dave Peterson -- Dave Peterson |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Neil
Maybe this..............? Sub dothings() ActiveSheet.Unprotect Password:="justme" 'your macro code to do things ActiveSheet.Protect Password:="justme" End Sub Gord Dibben MS Excel MVP On Wed, 13 Feb 2008 08:16:05 -0800, Neil Pearce wrote: That has worked well Dave, thank-you. However this doesn't enable me to set a password within the workbook thereby others may still alter the spreadsheet. Is there a list somewhere of what is allowed and not allowed when the spreadsheet is protected? Is there a way to enable Macros to run if a set a password is inputted when protection the workbook? "Dave Peterson" wrote: Do the macros not even start or do they start and fail? If they don't start, make sure your users are enabling macros when they open your workbook. If they start and then fail, then you may be trying to do stuff that isn't allowed on a protected worksheet. If that's the case, you can unprotect the worksheet at the top of your macro, do the work and then reprotect the worksheet right before your macro ends. Neil Pearce wrote: Dear all, I would like to protect my spreadsheet so that others might use it. However when I do so the macros in the workbook do not run. I may select the button that they are attached to but the marco itself doesn't run. Which settings do I change to alter this situation? Thanks in advance, Neil -- Dave Peterson |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Perfect Gord, thank-you.
"Gord Dibben" wrote: Neil Maybe this..............? Sub dothings() ActiveSheet.Unprotect Password:="justme" 'your macro code to do things ActiveSheet.Protect Password:="justme" End Sub Gord Dibben MS Excel MVP On Wed, 13 Feb 2008 08:16:05 -0800, Neil Pearce wrote: That has worked well Dave, thank-you. However this doesn't enable me to set a password within the workbook thereby others may still alter the spreadsheet. Is there a list somewhere of what is allowed and not allowed when the spreadsheet is protected? Is there a way to enable Macros to run if a set a password is inputted when protection the workbook? "Dave Peterson" wrote: Do the macros not even start or do they start and fail? If they don't start, make sure your users are enabling macros when they open your workbook. If they start and then fail, then you may be trying to do stuff that isn't allowed on a protected worksheet. If that's the case, you can unprotect the worksheet at the top of your macro, do the work and then reprotect the worksheet right before your macro ends. Neil Pearce wrote: Dear all, I would like to protect my spreadsheet so that others might use it. However when I do so the macros in the workbook do not run. I may select the button that they are attached to but the marco itself doesn't run. Which settings do I change to alter this situation? Thanks in advance, Neil -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cell/worksheet protection with macros enabled | Excel Worksheet Functions | |||
Macros/Protection/Pivot Tables...HELP | Excel Discussion (Misc queries) | |||
how to hide a list of macros in excel 2000 without password protection | Setting up and Configuration of Excel | |||
how to hide a list of macros without password protection | Excel Worksheet Functions | |||
macros and protection | Excel Worksheet Functions |