Copy Cells Removes Sheet Protection

Feb 1, 2007

I have hidden columns on a sheet.
I protect the sheet with a password before I send out the file to a 3rd party. However, it seems that all a user has to do is select the sheet cells, copy and paste onto another sheet or file. The protection is nonexistant and the user is able to unhide the columns.

Am I missing something?
Is there a way to "really" protect a sheet so that a user is unable to unhide confidiential columns? Preferably a method without VBA code.

View 9 Replies


ADVERTISEMENT

Copy & Paste Cells Excluding Formatting & Protection

Dec 24, 2008

I have the following code from a form. It works just fine copying named ranges from one sheet to another. The probloem now is that I don't want to copy the characteristic of the formating or whether they are protected or not. The originating spreadsheets have cells that are protected. I am trying to copy those values over to the new sheet and paste their values or formulas but not their formatting (background color) or the fact that some of the cells are 'locked'. I want the new sheet to have the values and formulas but not the be lock for the user. Is this possible with the current way I do the code or do I have to rewrite it? How would you approach this?

Private Sub CommandButton1_Click()

Import_Data_Form.Hide

Run "NPA"

Set b = Selection
ad = b.Address

' Local Variables
Dim wkbDataFile As Workbook

' Let user select source datafile
Call UserSelectFile_WOpen(wkbDataFile)
If wkbDataFile Is Nothing Then
MsgBox "User did not select a workbook to open"
Exit Sub
End If

Application. ScreenUpdating = False
Set wb = ThisWorkbook

Application.DisplayAlerts = False

View 4 Replies View Related

Copying Cells From One Sheet To Multiple Sheet And Naming Sheet As Copy Text?

Dec 24, 2013

I want to do a loop where you can copy say A3 worksheet 1 then add another sheet naming the work sheet "A3" then copying A3 worksheet 1 to A1 "A3". After that looping to A4 to a new work sheet naming the work sheet "A4"copying the value to A1 "A4", etc...

Is there a simply way of doing this loop? I can probably fit my other coding into the structure.

View 4 Replies View Related

Copy Data From One Sheet (Fixed Cells And Sheet) To Another Sheet

Apr 18, 2009

I want to be able to copy a name from one sheet (Available Players), paste it to a cell in another sheet (Round 1 through Round 20). The cell that will be copied is fixed but the place where it will be pasted will be different and may be on a different sheet.

also i would like to change the color of the copied cell to "greyed" out or cut if it can not be greyed out. I have created a button and put in a macro that i created but have been having problems with it, generic 1004 errors that i can not figure out. i am attaching the document.

View 8 Replies View Related

Copy Selection When I Have Protection

Dec 3, 2007

I have a worksheet that sometimes needs to be edited. In order for me to copy and paste I have to "comment block" the Workbook change and the Worksheet change event macros. Make my copy and paste then I have to "Uncomment block". I do this manually. Is there a way to create a macro to do this? Or is there an easy way to do what I am trying to accomplish.

View 9 Replies View Related

Copy Protection :: On Different Computers

Jan 28, 2008

[url]

Private Sub Workbook_Open()
****'** MsgBox Environ("ComputerName")
****If Environ("ComputerName") UCase("Authorized PC Name") Then
********MsgBox "Sorry No Go!" & vbCrLf & "Wrong computer!"
********End
****Else
********'** Do your thing here
********MsgBox "Proceed"
****End If
End Sub

Reading the thread in the link above, It seems as if one could limit access to a workbook. I tried this code on a dummy workbook, I have a few question...

1. Why am I getting "Sorry, No Go. Wrong Computer" when I just put the code in the dummy worksheet for the first time?

2. Can this code be modified to capture my clients computer information to restrict the workbook useage only on one computer and prevent unauthorized distribution to other computers?

3. Can this code run automatically everytime the workbook is open?

View 9 Replies View Related

How To Setup Sheet Protection

Nov 27, 2012

When I protect the entire sheet, I can click in a cell and see what's in it, when I protect just a portion of the sheet, I can only click in the unprotected cells. Is this an Excel thing, or am I doing something wrong when protecting? I would like to see what the formula is in the cell when protected, but I can't click on the cell, what's the deal?

View 8 Replies View Related

2002 Sheet Protection

Feb 20, 2003

Is it true that the sheet protection in excel is practicaly none ?

Not even excel 2002 (XP) prevents simple cracking software from removing sheet protection.

Are there any master keys that cause that ?

Is there a way to protect a sheet with strong encryption ?

View 8 Replies View Related

Password Protection A Sheet

Jun 29, 2006

Is there a way to password protect a sheet so that you have to enter a password just to access it. I dont want most users to be even able to view one sheet unless they have the password.

View 2 Replies View Related

Password Protection Through A Sheet

May 14, 2007

I got this form RoyUK and was wondering if anyone know why it comes up with a debug here

Option Explicit
Dim sPw As String
Dim i As Long
Dim r As Long
Dim iChk As Integer

For Each rCl In .Range(Cells(r, 3), Cells(r, Columns.Count).End(xlToLeft))

View 9 Replies View Related

Copy Protection :: Unique To A Computer

Feb 15, 2006

I understand that security in Excel is not very robust, but the users I intend to distribute a workbook to are not very sophisticated

Are there any system properties that are accessible to Excel/VBA and are unique to a computer that could be encoded in a hidden/protected cell, so the workbook would be frozen if copied to another computer?

Eg the user emails me that property which I enter in the check cell, and upon opening the workbook the check cell is compared to the system property, locking it up if the check fails?

View 9 Replies View Related

Macro: Protection From Same Password To All Sheet

Aug 1, 2007

i have a spreadsheet with about forty different sheets and all of these sheets are protected with the same password, and wheni come round to doing an amendment to the spreadsheet i have to unprotect and then re protect each sheet in turn, very time consuming

each sheet is naturally named different

View 9 Replies View Related

Sheet Protection Problem With Groups

Mar 19, 2007

I have an excel workbook I'm working on, and it needs to be protected. I have some groups that can be expanded or hidden, but once the sheet is protected you can no longer use the little button to hide or expand the group.

View 9 Replies View Related

Transferring Sheet Protection From One Worksheet To Another Via VBA

Nov 29, 2011

Any way to transfer the sheet protection from one worksheet to another worksheet via VBA.

Currently, the user selects a name from a drop down list, it unhides a workbook of the same name, copies from that workbook, and places the copied information in an area of the sheet with the drop down list. I would like the protection settings (in this case, selectivly unlocked cells to allow users to easily tab through and not make changes to data that should not be changed) to be copied with this information. Is this possible?

View 2 Replies View Related

Inserting Rows And Sheet Protection?

Jan 8, 2013

I have a piece of code with a couple of errors. The code selects a certain row and then copies and inserts this row on the last line with data, the number of rows is decided by the user via a form. The line of code with the error is highlighted, think it is a syntax/grammar error.

Code:
Sub InsertRows()
'
' Inserting Rows
ActiveSheet.Unprotect
FormRowInsert.Show
Application.ScreenUpdating = False

[code]....

View 9 Replies View Related

Show Status Of Sheet Protection

Sep 14, 2009

I have a workbook with about 70 sheets, some are specific for data entry, others for data review.

I share the workbook with my data entry team, and lock the review sheets so that no one can modify the data on them or change the formating. End users review the final protected sheets for the information that is appropriate to them.

I need to track the status of the protection of each sheet, such that I can edit the sheets as needed, then protect / lock them once I am done.

Is there a way to indicate, in a cell within the indvidual sheets, the status of protection for that sheet?

For example, if the sheet is protected, the Cell would read "LOCKED" and if the sheet is not protected, the cell would read "EDIT".

View 9 Replies View Related

Sheet Protection Causes Macro Error

Jun 29, 2007

I've been using the attached spreadsheet to record daily sales for a while now, however, we've recently intorduced a new product and so I've had to add a new column to record daily sales of it.

On the spreadsheet is a 'New Week' button. Pressing this deletes all entries and moves the week numbers on by 1, so giving me a blank template each week. However, after the addition of the new column I'm now getting a bug error message. I've adjusted the code to take account of the new column but I'm still getting a bug error. When I press 'debug' it's highlighting something I have changed so I'm a little confused why I'm getting the bug error. Would someone have a look for me. I only seem to get the bug when there is protection on the sheet, I need protection. The password is PHUKET38

View 9 Replies View Related

Cell & Sheet Protection Basics

Mar 27, 2008

I have 2 spreadsheets: in a Sheet1 I keep some values and in a Sheet2 5 names of users with special rights (range A1:A5). I want to have sure that anybody will change/delete that names without password. Only the user "Administrator" can do that(I check the name of the user using "Application.UserName"). Additional question: is it possible to still protect those cells if somebody turn off macros during opening file?

View 4 Replies View Related

Macro To Copy Data From Sheet 1 To Multiple Pages On Sheet 2 In Correct Cells

Jan 15, 2009

I have attached a 97-2003 .xls file with data for multiple store locations on sheet 1, and the desired result on sheet 2. I am actually using excel 2007, but I dont think I need any special features that it provides.

I will try to explain the issue here without opening the attachment.

Here is an example of the Data on Sheet1

View 13 Replies View Related

Command Button To Copy Cells From One Sheet And Paste In Second Sheet

Aug 21, 2014

I'm trying to create a command button on my sheet that when clicked will find all rows in column u that read Engineering Evaluation and then copy certain cells from that row to another sheet. The kicker is that this button will be used over and over again as more entries are entered into the log. I only want each row counted once.

Right now I get a run time error for the "For Each Cell In Application.Intersect(Range("u:u"), target)" line.

View 6 Replies View Related

Sheet Protection Column Width Lock

Jan 16, 2014

I am trying to Protect a Sheet to lock the width of just one column. Does the lock apply to all the columns in the worksheet or can it apply to a single column only. I can't seem to get this to lock just one column-if it is possible.

View 1 Replies View Related

Remove Sheet Protection From Every Workbook In Folder

Dec 28, 2009

I have tried to cobble together a macro to remove the sheet protection from every sheet in every workbook in a folder. Not surprisingly, it is not working. Unfortunately, I have reached the limits of my VBA abilities.

View 9 Replies View Related

Auto-Refresh AutoFilter With Sheet Protection On

Nov 23, 2008

I found one of your old VBA entries that allowed me to automatically refresh an autofilter function, and it works great.... with protection off.

As soon as I protect the sheet so users can't enter data into the pages showing the autofiltered data, the autofilter kicks off.

i have set the protection to allow autofiltering, so it's something that is preventing the macro (for automatically updating/refreshing the autofilter).

I'd love to either fix the macro to "autorefresh autofilter" with protection on, or just enter another code that will disable all functionality on the worksheet. (workbook is set up with multiple sheets, first sheet is for all data entry, subsequent sheets are filtered data-trying to make them viewable only).

View 9 Replies View Related

Setting Protection Change To Rest Of Sheet After Last Row

Aug 8, 2006

I have a form that will be populated with different numbers of records. I need the records to be locked, but the remaining rows (if the user needs to add new records) to be unlocked. Can I use some sort of range.end function for this?

View 9 Replies View Related

Event Macro Causes Sheet Protection Prompts

Jan 26, 2007

One of the things it does throughout the course of the run is unprotect the worksheet, do what it needs to and then reprotects the sheet (using a password). On the second run, the sheet protection input box is shown and I am required to input the password before the code will execute.

The code that I have written uses an Add-in that pulls data from a database. As part of that retrieval, the other add-in protects the sheet without a password. Would that be causing my error?

View 6 Replies View Related

Copy Cells From A Sheet And Transfer Only The Values To Other Sheet?

Feb 20, 2014

I'm trying to copy the cells from a sheet and transfer only the values to other sheet.

I did it via code and it worked fine, except for the dates. In the new sheet the months and days are swapped.

The original date is composed via the concatenate function, since it gets inputs (day, month and year) from the user in different cells. It's in the format D/M/YYYY (examples: 4/2/2014, 10/12/2013). I believe the excel interprets it as Text, even if I formated the cells to Date.

I think it may have something to do with the default format in different countries. Here in Brazil we use DD/MM/YYYY, but my Excel is in english and in US the format is MM/DD/YYYY, am I right?

View 2 Replies View Related

Copy Rows From One Sheet To Specific Cells In Another Sheet?

Jul 15, 2013

The senior members have made it less intimidating to start writing code. Infact I picked up a DUMMIES book and a Macro book and it's been a lot of fun. Anyway here is my code that I have created thus far.

HTML Code:
Sub ReportExtract()
Sheets("Sheet1").Range("B2").Copy Destination:=Sheets("Sheet2").Range("C4")
Sheets("Sheet1").Range("A2").Copy Destination:=Sheets("Sheet2").Range("C6") '

[Code]....

Essentially what I am trying to do is copy these cells from sheet 1 to sheet 2 and then save it as another file using the name of C6&"Text String *Report" This would essentially take the first record A2 - CL2 and then delete that record and move onto the next row 3 and loop through and create another file with the same name C6(Sheet2)&"Report Name" Sheet 2 is the template where the data from the rows will drop into. I have those called out above in the code. It works just fine. I'm stuck though with how to copy the file and move threw all the records and saving them as separate files. Just to make sure I am clear it's 1. Copy data from sheet1 to sheet2 (Template). 2. Then save that file with the file name as cell C6&"some text" concatenated. Loop through sheet1 grab the next record and rinse lather repeat. Just a few weeks ago I was struggled to create macros and now I can copy. Pretty weak I know but I really enjoy this, in fact I sold all my books and just have VBA material so I stay focused.

View 6 Replies View Related

Modify Macro To Check And Turn Off Sheet Protection.

Dec 14, 2009

I am using the macro below to import every spreadsheet into a folder. I would like to modify it to check the sheets it is importing for sheet protection. If the sheet protection is turned on, I would like it to turn it off. The password for the sheet protection will be "PIR".

View 3 Replies View Related

User Allow To Format The Cell And Text In Protection Sheet ?

Jun 1, 2006

how to allow formating a text and cell in protect sheet ?

View 4 Replies View Related

Sheet Protection Conflicts With Code To Autosize Row Height

Apr 23, 2007

When turning on sheet protection, I get an error with the following code that I'm using to make sure rows adjust their height when lines wrap.

Rows.EntireRow.AutoFit

What can be done to eliminate this conflict? All of the cells I want available for editing are unlocked.

View 3 Replies View Related







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