Protecting MACROS

Mar 16, 2003

Could there be something that will not show the macros and also make it impossible to edit them (but ofcourse let me have access when I need to change soem thing, password may be? )

Having to talk about password, let me tell you that, I did try and put a password inside the VBA but it didnt seem to make any diff uzzled:

View 8 Replies


ADVERTISEMENT

Protecting A Worksheet That Contains Macros

Jun 5, 2009

I need to protect the attached to stop people deleting the formulas. The problem is that there are hidden macros and when i protect the cells the conventional way they stop working and i lose all the data in the IAS sheet. I have highlighted all the cells in yellow that i want to be able to change once protected.

At this stage I would just like some one to explain how to protect it. Ideally I want to do it normally (unlock the cells individually that I want to remain unprotected, then protect the whole sheet). If its not then presumably its a macro alteration that's needed?? don't do it at this stage as depending on how it will be protected will mean that i need to make a few adjustments.

View 3 Replies View Related

Protecting A Workbook But Still Able To Run Macros

Mar 7, 2008

is it possible to protect a workbook but still run various macros, i have tried this and the macros wont run

View 10 Replies View Related

Encourage Enabling Of Macros: Disable Macros When Opening Then The Worksheet Menu Bar And Other Command Bars Are Still Available

Aug 26, 2009

I have an Excel 2003 program that contains macros. One of the macros hides certain command bars and disables the worksheet menu bar. On close the opposite is true. The problem is, if a user uses the disable macros when opening then the worksheet menu bar and other command bars are still available. I would like to hide all of the data sheets and display another sheet that would normally be hidden displaying a message that the macros have to be enabled for the program to work correctly if disable macros is chosen. When the enable macros are used I would like the Error page to be hidden.

View 6 Replies View Related

Enable/Disable Macros When No Macros Are Present

Jul 28, 2008

I have a user that keeps a maintenance log in an Excel worksheet and sends an updated copy once a week to a board member. Two weeks ago, the board member started complaining that he was prompted to enable/disable macros on opening and became worried when my user stated that no macros were used in the book. He is now concerned that we have sent him a virus.

I know the file is clean because I've scanned it, and when I look at the file in VB, there are no modules or classes present just the Sheets 1-3 and the ThisWorkbook file. None of these objects have any code in them. My user does have some macros in PERSONAL.XLS but they are not used in the workbook in question.

No one else gets the prompt for enabling/disabling macros. Even if I set my security to prompt for any macros, I get no message. I'm convinced that there must be some setting in his Excel that is causing this individual to get this message. Is there anything else other than a macro that would cause this?

View 9 Replies View Related

Protecting From Modification

May 18, 2009

I would like to protect the worksheet from modification by other users except column A ( suppose A1: A15).

I have been doing this by removing Locked on format cell and then Protect Sheet on Review tab.

Is it the right way or there are other more reliable way?

View 2 Replies View Related

Protecting And Unprotecting With VBA

Feb 6, 2010

I have created a form that allows users to input data to an excel sheet, and also will enable users to view the data once they are done.

Is there a way to unprotect the sheet using VBA so that the data can be written, and then protecting once the data has been input?

View 2 Replies View Related

Protecting Workbook

Feb 4, 2009

I've got about 50 worksheets in a workbook and I'd like to protect them all.

Problem however is that I've got buttons in my worksheets that insert rows, delete rows.

I've also got a dynamic chart with listboxes that select data.

When I protect my worksheets all this is disabled.

Is there a way around this?

This is what I've done so far:
[url]

View 14 Replies View Related

Protecting Cells

Jul 17, 2002

Is there a way to just protect just a single cell, in order to lock & hide a formula within that cell, without having to password protect the whole worksheet?

View 9 Replies View Related

Protecting Worksheets

Nov 27, 2006

I have a bunch of worksheets in my workbook say around 50

Each worksheet has the same template layout!

I am trying to figure out a macro that will select all worksheets from 'KLKN':'KFSN' and protect the cells L45:L52 accross to AL45:AL52

Unfortunately I cannot select all worksheets and protect them, instead I would have to manually do this, or create a macros that will do it for me...

View 9 Replies View Related

Protecting All Sheets

Jul 1, 2007

I am trying to protect all sheets on a Workbook Close event.

I don't want the user to even be able to Select the Loked cells so I set it up that way through formating of cells.

This is what I have tried:

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim sh As Worksheet
For Each sh In ThisWorkbook.Worksheets
sh.Protect Password:="P@ssword", DrawingObjects:=True, Contents:=True, Scenarios:=True
ActiveSheet.EnableSelection = xlUnlockedCells
' sh.Protect Password:="P@ssword"
Next sh
End Sub
I even tried the commented out line in that postion instead of where it is now.

It does protect but still allows selection of locked cells.

View 9 Replies View Related

Protecting The Workbook

Aug 12, 2007

when protect a workbook and select the option for window the window then only appears as about two thirds of a full window?

Is there a way in which you can protect the workbook, select the window option and have the window appear as full size?

View 9 Replies View Related

Protecting The Document

Jan 15, 2008

Version used: Excel 2003

I have a spreadsheet that everyone in my department uses. My boss has asked me to protect certain columns so that only I can edit them but leave others so that the rest of the depratment can use those.

I have tried locking the ones I am to use and unlocking the ones the others can use then protecting the document. This works well enough as far as it goes, however, it is combersome having to unprotect then reprotect it every time I need to work on it. Also, that method makes the drop down lists that we are using for easy sorting no longer function.

View 9 Replies View Related

Protecting A Workbook

Feb 6, 2008

I have a very large workbook - there are only five sheets of this workbook that should be viewed by anyone. What I would like to do and just can't seem to find a solution is...

I would like to set the workbook so that when opening I use a password which will give me full access to anything in the workbook - upon read only, a user would be able to open the entire workbook without a password - but only view it's contents - not be able to do any adjustments.

I have locked cells which I do not want anyone to adjust the formulas to, then protected the sheet - this works, however, because there are so many sheets, it becomes very tedious to unlock and lock sheets to work in them.

View 9 Replies View Related

Protecting A Sheet ..

Mar 24, 2008

I have a Sheet with some Macro Buttons for the boss to use.
How can I protect the sheet from any Data Entry changes, but still allow the Buttons to be used?

I tried a few scenarios and in all, the Buttons can't be used.

View 9 Replies View Related

Protecting Fomulars

Apr 22, 2008

I have a work sheet with formulars on column A,B,E and F,(from row 19-119) Column C and D are for inputing data. How do I protect the the columns with formulars at the same time be able to input in column c and D.When I try using protect worksheet it protects all including the one for imputing data..

View 9 Replies View Related

Protection Not Quite Protecting

Jul 24, 2008

I have a workbook and i have spent time protecting all the formula cells and allowing user to only be able to select unlocked cells (so they can quickly tab to where they need to input info).

I have lots of codes running and always use Activesheet=unprotect If i am modifying protected cells and then at the end of the code i put back the activesheet=protect.

HOWEVER

When i transfer this book to another machine or to someone else to run it on their machine - ALL of my protection GOES OUT THE WINDOW

Also - is there a way to hide or protect all my code so that users cannot modify it?

If so - how do i get it back to modify state when i want to edit it?

View 9 Replies View Related

Password Protecting VBA

Sep 10, 2008

I'm trying to use the Tools|VBA Project Properties dialog box to stop folks from unhiding an xlveryhidden sheet, but even though I check the "lock" checkbox and input passwords in the password and the password verify boxes, Visual Basic fails to stop me from selecting the sheet in question from an Alt-F11 spawned VBA, and editing away.

View 9 Replies View Related

Protecting Sheet ...

Jul 30, 2009

I have a sheet and want users to be able to type in a set of cells but not able to move the cell how do i do this?

View 9 Replies View Related

Protecting My Database From Seeing

Mar 14, 2007

I have some database in excel worksheet, also I have an userform with a button that opening another excel file. When I press the button and opening a new workbook I want to protect my database from seeing. How I do it (code)?

View 5 Replies View Related

How To Delete Another WorkBook Macros Using Macros

Jul 23, 2005

What is the commands or script for deleting a macro automatically using
another workbook macro.

View 9 Replies View Related

Hiding Macros From The Run Macros List

Jul 14, 2008

Is there a way to hide a macro from the list where you choose which to run, but not in the VBA editor? The userbox I just created calls upon 2 different macros, and has a macro to bring up the userbox. I need a way to hide the macros in Module3 from selection, but keep the macros in Module4 available to choose to run.

View 9 Replies View Related

Protecting Worksheets Through Password

Nov 10, 2008

Im trying to protect worksheets in a document by licking...Tools>Protection>Protect Sheet. I am also wanting to password porotect it but every time I think I have protected it, i can still click in all the cells, there are some cells that can be left unprotected....but either way I have not manged to do either.

View 2 Replies View Related

Protecting Functional Cells

Jan 11, 2009

I am working on both MS Office 2003 and 2007. I am currently working some formulas on the worksheet which I would like to be protected. Therefore I would like some cells in the sheet to be protected and therefore only the person knowing the password (administrator) will be able to change.

View 3 Replies View Related

Protecting Worksheets In A Workbook

Jan 20, 2010

I have a workbook with several worksheets in it. One worksheet for each manager. I only want the individual manager to see their individual worksheet and not those for the others. Is it possible to hide the worksheet and unhide it using an individual password, a seperate one for each manager ?

or alternativly, is it possible to hide say the columns and give each manager their own password that only allows them to unhide the columns for their worksheet. I really dont want to have to send out several seperate versions, just sending one workbook but passwording the individual worksheets within it would be ideal.

View 3 Replies View Related

Protecting A Sheet From Deletion

Mar 26, 2007

I have a workbook with particular worksheets that should never be deleted. If they are deleted by the user the workbook will become unusable.

The users need the freedom to edit data within the sheets (so protecting them is not an option), however, I need to restrict this freedom so that they cannot under any circumstance delete the sheet. Is there such code that I could use in the worksheet code to stop this?

View 12 Replies View Related

Unprotecting And Protecting Sheets

Nov 18, 2008

I currently have set up two macros that will unprotect and protect all sheets. When I run the macro I noticed that it will not unprotect the sheets that have been set as a new sheet for the chart (the chart is not a object in a sheet it is a sheet all by itself) Can anyone tell me where I have gone wrong?

View 14 Replies View Related

Password Protecting More Than One Worksheet

Dec 22, 2008

I have set up a workbook with a tab for each month. in the workbook open module i have the following code (below marked Password protect) that allows for three passwords to unlock certain ranges of cells, what i would like to do is for this code to apply to each worksheet.

Now in the main this works except for one range of cells H11 to H1000, on every sheet all cells are locked except for this range which is unlocked in every sheet except sheet one when you enter the password staff. The only other code i have is for a time stamp (marked time stamp) so that i can monitor when the user has entered data. this again has reference to the sheet name.

their must be something really straight forwad i am doing wrong here as everything works on an sheets except this range being locked.

I am in excel 2002 but my users are on 98, which is why i am protecting in VB rather than using the prtect range option.

View 7 Replies View Related

Protecting Worksheet - With Password

Oct 26, 2009

modify the code below to do the following:

When I recorded this macro shown below, I entered in a password (twice) as prompted by Excel 2003.

So when I run this code, it seems to work fine. However, when I want to unprotect the worksheet, I am not prompted to enter in the password.

modify the code so that when I need to unprotect the worksheet, I am prompted to enter in the password?

View 12 Replies View Related

Protecting A Worksheet With A Macro

Oct 27, 2009

I am looking for code which will protect a worksheet based on the value of a particular cell.

i.e. If cell A1=1, then the worksheet will be protected (ideally with a pswd)

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved