Allow user to run a macro in protected mode

I want to let other users of my spreadsheet to run a macro in protected mode.

The macro runs the filter for a big spreadsheet and I want to keep the 
protection on but let users run the simple macro that hides the blank lines 
with auto-filters.

Users get Run-time error 1004 when they click on my macro icon
Cloutier (3)
11/23/2005 8:09:03 PM
excel.misc 78881 articles. 5 followers. Follow

2 Replies

Similar Articles

[PageSpeed] 30

The cells you are manipulating have to be unprotected during the

You can do this by putting this piece of code at the beginning of your

Dim Code
Code = "password"
Worksheets("sheetname).Unprotect (PrivCode)

Then at the end of your code put this

Worksheets("sheetname).Protect (PrivCode)

You will have to password protect your VBA editor for that Workbook but
this will allow the macro to change the sheet as it needs to.

goober's Profile:
View this thread:

11/23/2005 8:31:07 PM
Good evening Jean Cloutier

You should be able to run a macro in a protected sheet.  The error wil
be caused by attempting to filter items in a protected sheet.

If you are using Excel 2002 or higher, you can set the filter to run i
a protected sheet from the protection dialog.

If you are using XL2000 or prior, then look here to see how to handl
filters in a protected sheet:



dominicb's Profile:
View this thread:

11/23/2005 8:55:28 PM

Similar Artilces:

Password Protection doesn't interop between Office for Window and Office for Mac 2004
I have an excel file that was created in Office for Windows and certain cells were password protected. When I open that same file with excel for Mac the password protection doesn't work. I tried tools>unprotect> .... I plug in the password and no luck. When I open that same excel file with another windows machine with Office for windows I'm able to access the protected cells after entering the password. Is this a known issue? Is there a fix for office for mac? I'll be forced to buy a windows version of office which would make the mac version useless. I'm currently r...

Outlook Express Visual C++ Runtime Library Run-Time Error
I have a friend who's using Outlook Express 6 and is getting an "abnormal program termination" error whenever he attempts to attach a graphic file within Outlook Express. He reports that it works fine when using the Explorer shell to call OE. My friend has WinXP Home. Any advice? Jay ...

Help! current RMS users advice on choosing partner
As an actual user of the product what is your opinion on a local partner versus another partner farther away. I am really torn because I really like RMS but my local partners in my state (only 2) are not gurus. I am sure they can handle "setting me up" but there expertise is on other POS systems. I seemed to understand more of the potential of RMS for my store then they do! I have only gained that knowledge from my use of Quicksell 2000 and reading answers on this forum. My business is a service oriented business. I have suppliers who only sell to me and not the "m...

run macros automatically
i have got around 10 macros in a excel spreadsheet. i want all of them to run when i open the file. or there should be a button which will runs all the macros whenever the user wants. You can do it either way really, First create a new macro, that runs all the ten macros that are in your workbook. If you want this macro to run whenever the sheet is opened, save it with the name 'Auto_Exec' and it will run automatically when you open the book. If you want to execute the macro on a button press, you can call it any name you wish. Next you will need to create a new button, so go ...

Alternative for user instance login flag ?
I have SQL Server 2008 Developer Edition only installed on development PC, have 2008 Standard Edition on the production server. The DBAs have the production environemnt locked-down. I created a VS.NET 2008 web application and setup a MDF to use my Dev Edition DB instance. When I run the app, I try to connect and get " The user instance login flag is not supported on this version of SQL Server. The connection will be closed. " I understand that only SqlExpress supports this functionality. The professional DBAs are not going to let me just install another instance o...

Recording a macro of keystrokes in Outlook?
This is odd; in Outlook I can't find how to record a macro while one is using Outlook so that it records the keystrokes. It seems, at least with a standard setup, that one can only go to the VB editor. Am I missing something? Thanks. No, you're not missing anything. There's no macro recorder for Outlook, you have to code macros from scratch using Outlook VBA. See for information on Outlook VBA macro coding. -- Ken Slovak [MVP - Outlook] Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Exte...

Printing Issues when distributing a form to multiple users
I am distributing a spreadsheet to multiple users. The spreadsheet is being used as a form for data entry. The problem i am having is that when it is being printed, the users are getting varying page layouts where the page breaks have changed, due the changes to the length of the document growing from the free text they are entering. The page breaks that excel chooses don't seem to be spaced well, leading to one or two of the pages being very short (i.e., leaving a lot of free white space), whereas the other pages are taking up the entire page. Is there a particular page layout selection...

Money 2003 only allows integer splits, what about 2004?
I recently ran into a problem in reclassifying Vanguard mutual fund Investor shares to Admiral class shares. There is no change in tax basis for this, thus I thought that using the stock split function would be perfect. Unfortunately in Money 2003 Deluxe it only allows integer splits (e.g., 2 for 1, 3 for 5, etc.) and the change in my mutual fund share status is not integral: for each Investor share one gets (say) 2.045767892 Admiral shares (which are priced 2.045767892 times higher, price obviously rounded to two places). Even using the total number of shares before and after, like 28...

How to turn macro back on?
Hello, I've a spreadsheet and I can see that there's a macro inside. However, when I try to run it, Excel told me the spreadsheet has been opened with macro disabled. There's no pop up dialog box that asks me if i will like to open the macro with this spreadsheet when I open the file. I cannot find a way to reenable the macro. So how can I turn the macro back on? Thanks. Herbert Herbert, It seems your macro security level is currently set to High. Follow menu path Tools > Macro > Security to change to Medium, so you are prompted whether you want to enable macros or...

force clients to Cache Mode with E2K3 SP2
Where is the setting to force Outlook 2003 Clients to Cache Mode in Exchange 2003 Sp2? Thanks On Wed, 19 Oct 2005 22:03:43 GMT, "BigHaig" <> wrote: >Where is the setting to force Outlook 2003 Clients to Cache Mode in Exchange >2003 Sp2? > >Thanks > It doesnt force them, it prevents logon unless the clients are in cache mode. Check the release notes for more info. "Andy David - Exchange MVP" wrote: > On Wed, 19 Oct 2005 22:03:43 GMT, "BigHaig" <> wrote: > > >Where is the setting t...

need to allow negative quantitys on purchase orders
because our vendors list returns and exchanges on invoice i need the abillity to enter negative quantitys when recieving manually. any ideas? ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion in the Microsoft Web-based Newsreader and then click "I Agree" in the message pane.

Run two copies of Outlook with different profiles
Hello! I'm trying to run two copies of Outlook with different (outlook)profiles at the same time. Normally i can choose the profile with the /profile switch, but if there is already a copy of outlook running, this switch seems to be ignored. Any ideas how to handle this are welcome. Regards, Reinhard "Reinhard" <> wrote in message > Hello! > > I'm trying to run two copies of Outlook with different > (outlook)profiles at the same time. > > Normally i can choose the p...

Limited User Account
I am thinking of buying Microsoft Money Plus 2008 to use on a computer with Windows XP. I read in the user guide that I must install it with an administrator account, which I would expect. After it is installed, can I import data from Quicken 2006 and use MS Money Plus from a limited user account? The reason I ask is I do all my routine work with a limited user account and only use the administrator account when absolutely necessary. Gerry In, Geber wrote: >I am thinking of buying Microsoft Money Plus 2008 to use on a computer >with Windows XP. I read in the...

does publisher 2000 run on windows xp?
thanks for helping if you know the answer Yes, all versions of Publisher run on XP, Publisher 1.0 maybe the exception. -- Mary Sauer MSFT MVP news:// "Baudouin" <> wrote in message > thanks for helping if you know the answer Mary Sauer <> was very recently heard to utter: > Yes, all versions of Publisher run on XP, Publisher 1.0 maybe the > exception. It runs. Not on...

Trying to get a type of video file format to open and run on my we
I created a video using Windows Movie maker and saved as .wmp file. I saved it to my computer and then inserted on my web page under Front Page 2003. Nothing! I then converted the file to avi format - still nothing! I then tried mpeg4 still nothing. The manual is next to useless on this subject. Anyone tell me what I need to do so that when a user opens up the page the video plays automatically. -- Simon Holloway Save as a .wmv and insert a suitable player into the page. For IE only, Insert->Web Component->Advanced Controls->ActiveX Control Click Next Choose Window...

Workbook with macros hangs up when opening, only with certain user
Chip Pearson has some notes about startup problems at: Ron516 wrote: -- Dave Peterson ...

How to force the user to fill in values for yes/no fields ?
Hi ! I'm using MS Access 2003. I have a table with a number of yes/no fields. When a new record is started, I want the user to explicitly specify a value for each of these fields, e.g. by choosing one of two radio buttons associated with the field. Now, it was no problem for me to arrange an option group with two suitable radio buttons for each of these fields. The user can then choose explicitly between yes and no. However, all fields seem to have implicit values immediately after a new record has been started. Therefore, the new record can be stored in the db without the user making...

script error running reports from home pages, why??
I'm not a GP user/expert, we recently installed GP2010. Since then one user has said, "When I try to run reports from the home pages, I am getting this script error and cannot run any reports." The error is: Line 47 Char 5 Error The system cannot find the file specified Code 0 URL: file:///C:/Users/username/AppData/Local/Temp/tmp/AE8.tmp I have received differing responses to this issue: 1) enable the Run command on the Start menu of our XenApp server for the regular domain users, which I view as a big security risk 2) "the UserData folder does not exist in the %ap...

How to control what tabs are displayed in Active Directory Users and Computers
I do not see the value to allow the delegate to change the City, State, Country, Office. What am I doing wrong. (see info below) Also is there a way to limit the view of what is shown in Active Directory users and computers, so the Delegate only sees the General, Address, Telephone and Organization tabs? I know the step below lock them out of the other tabs, but there would be less confusion..even if it is registry hack on that local pc. Here are the steps I have done so far: Step 1. Create a Security Group Called 'XYZ' (call it what ever you want Step 2. Open Active Directory User...

user can only do send as
I currently have a user running OfficeXP Standard SP1, Win2K SP3 and the server running Win2K Exchange 2000 SP3. The user has been given permission to send on behalf of, but not send as. When they send something trying to use the send on behalf of, the messages sends as if it were sent as send as (i.e. it appears to come directly from the user and doesn't have the additional message attachement sent of behalf of). Any idea of how to get the send on behalf of working properly? I have manually removed them and it still happens, as if it is stuck on somewhere. I allowed lots of time for re...

displaying charts from Macros
I would like to create the template which will present user with several data entry forms, calculate result and then should presend result as a serie of charts with next button to show next chart. Is it possible to display just the chart windows for each chart or they have to be displayed on separate sheets. Any suggestion on what is the most elegant solution to what I want to do ? Regards, Tony Tony - The chart windows are not stable; they disappear when the user clicks anywhere else. But I don't think you really mean chart windows as such. You can make embedded charts. From Lo...

How can I save Visio as Word to allow an edit in Word?
I have several flow diagrams that my national director wants saved in Word format so she can "play" with them. No matter the format I choose to save the files, no matter the times I save with a different file extension, the page always opens in Visio. Is there any way to save the files to allow editing in Word? I really don't want to have to do these all over again. And no, she has no intention of learning how to use Visio. Thanks! unfortunately her desire to edit them in word will go unfulfilled. al "Mollyb" <> wro...

I want to send full contacts list to another user
I have Microsoft Outlook 2000, and My Contacts are set up in a Hierarchy. I want to send the whole group to another user. Is there any way of sending the contacts, and keeping the existing Hierarchy. Thanks, Gerry. ...

Fetch user login information using JScript
Hi.. I am new to MS CRM. I am trying add custom HTML pages to the CRM which requires the user login information. I would like to know how to go about this and solve my problem Any help regarding this would be appreciated NN, I am not 100% sure of this but could you not just have the page use integrated authentication? Jeff Loucks 888-474-2237 MVP "NN" <> wrote in message > Hi.. > > I am new to MS CRM. I am trying add custom HTML pages to the CRM which > requires the user...

Macros disappear after a file is imported
Good afternoon everybody, I am working on a program that exports data from an Access query to an Excel spreadsheet. I then need to run an Excel macro on that spreadsheet. Export works fine and can see exported data in an Excel spreadsheet fine. But..... If I open a standard excel spreadsheet alone and click on my macros menu, I can see a list of macros, but if a spreadsheet is exported from Access to Excel AND Excel gets opened on an automatic basis by a VBA command, then I can see my exported data, but my list of macros is blank and seems unavailable. Anybody know why? (I know Excel m...