How To Protect Specific Columns Via VBA

May 8, 2014

I have a workbook that has protected cells however need the ability to specify which columns to allow editing and which not to allow. For example all data in column A can be edited however column B can't. Column C & D can and E can't and so forth.

View 4 Replies


ADVERTISEMENT

Password Protect Columns - Hide And Protect Ability To Unhide

Jan 17, 2013

Some sensitive data is held on worksheets that are used by people that do not have access to see the data.

It would be most convenient to keep the data in these worksheets but hide it from view of the users.

Is there a way to password protect a users ability to unhide a column?

View 2 Replies View Related

Protect Specific Sheets From Deletion

Dec 19, 2007

Is there anyway to prevent certain sheets from be deleted?

i know there is protect workbook, but that prevents the user from deleting any sheet

View 12 Replies View Related

Protect Or Lock Specific Cells Independently Through Button

Apr 20, 2008

I have the following question: I attached my file. In sheet "boekhouding" I want every cell in column H to contain a button that locks that specific row. So I can't accidently change the dropdownmenu for that row.

I also have some sort of strange problem in worksheet "Rekeningen", Range D1-D5 is named "Grootboek" were it should be named uitgaven. I can't change the name, but it doesn't seem to matter in worksheet rekeningen (the drop down menu for uitgaven works normally), what is wrong here?

View 11 Replies View Related

Protect Sheet But Allow User To Unhide Specific Range Of Cells

Jul 19, 2014

All, can I protect my worksheet while at the same time allow users to unhide a specific range of cells?

I'm hiding cell range FA:FK, but based on certain conditions I want to allow the user to unhide the cells but I do not want the user to be able to unhide any other hidden ranges. if there is a way to do this without using VBA. If it cannot be done with VBA

View 1 Replies View Related

Protect Columns In A Sheet

Jan 5, 2010

Protect columns in a sheet. Is it possible to protect columns for entries?

View 2 Replies View Related

Protect Cells / Columns

Jul 14, 2009

we are using a shared excel file in a network. Is there a way to protect cells/columns from updating by other users, and i can only update them.

View 9 Replies View Related

Protect Sheet But Hide/Unhide Columns

Dec 17, 2008

I have a speadsheet that has 27 columns for time entries, however employees seldom need to use more than the first 12 columns. I need to protect the sheet but would like the employees to be able to Unhide the columns when they need to use them, then reHide them. I can't find this as an option in either 2003 or 2007.

View 2 Replies View Related

How To Apply Different Passwords To Each Columns Without Protect Worksheet

May 9, 2013

In the attached file, I need four different passwords for Columns D, E, F, & G Respectively.

I had gone though below link and partially I could able to achieve what I need.

[URL]

However, the problem is at the end of this process we have protected the worksheet as well. This is not feasible for the process what I am working on.

how to apply different password without protecting worksheet.

View 5 Replies View Related

VBA Set Protect Sheet - Format Columns And Rows

Jun 11, 2009

I have VBA code to set a password on multiple worksheets in a workbook. I new need to force a check in the "Format Columns" and "Format Row" checkboxes. The current VBA code is:

View 4 Replies View Related

How To Lock / Protect Cells In Different Columns Based On Date

Oct 26, 2013

Trying to incorporate the following in a worksheet:

Lock the cells automatically in the columns that are older than 2 days or more

Lock the cells corresponding to today...

View 2 Replies View Related

How To Protect Cells/columns In Multiple Sheets In A Workbook

Sep 9, 2009

I'm trying to protect the contents of columns in multiple sheets in a workbook. I've tried to group the columns ( - months, i.e. sept, oct, nov 09 through to march 10) but when I go to Protection options the 'sheet' protection option is not available, all I can do is protect or unprotect the entire workbook.

I've also tried to protect the workbook, but individually set the specific columns in each sheet to be protected (repetitious but seemingly unavoidable), but this doesn't work well either as there's now a mix of a protected workbook and protected columns, both with individually set passwords to unprotect... which seems a bit silly.

There must be a way around this? - the columns are H, J, K and L, and the entire contents of the summary sheet '2009-10 Financial Year'... basically I'd like to be able to protect all of the contents of all of the cells here, ideally just with one password.

View 9 Replies View Related

How To Lock / Protect The Cells In Different Columns Based On Date

Oct 25, 2013

Trying to incorporate the following in a worksheet: Lock the cells automatically in the columns that are older than 2 days or more Lock the cells corresponding to today and yesterday using a command button after entering X Copy the sheet multiple times with the same features

View 14 Replies View Related

Search Only In Specific Columns (or Ignore Other Columns)?

Mar 25, 2014

Find button in Spreadsheet. My problem is I wish to only search 2 of the columns on my sheet.

I have been trying to locate info on my own, see here: [URL]

But I cannot seem to find anything showing how to specify where to search.

Here is the code I am using

[Code] ......

Want to search columns G and J -OR- Search entire sheet but ignore Columns A and B ...

View 2 Replies View Related

Password Protect: Unlock The Worksheet, Autofilter It, Print It, Unfilter It, And Password Protect The Sheet Again?

Jan 12, 2007

I have a sheet that is password protected. I have this code attached to a command button. It will unlock the worksheet, autofilter it, print it, unfilter it, and password protect the sheet again. However it is protecting it without a password. I need to have it protected with the password so that someone will not be able to just go to tools to unprotect the sheet.

Private Sub CommandButton1_Click()
ActiveSheet.Unprotect "rainforest"
Columns("O:O").Select
Selection.AutoFilter
Selection.AutoFilter Field:=1, Criteria1:=">0", Operator:=xlAnd
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Selection.AutoFilter Field:=1
Selection.AutoFilter
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _
, AllowSorting:=True, AllowFiltering:=True
End Sub

View 3 Replies View Related

Add Columns With Specific Text In A Row?

Mar 21, 2013

I am trying to track street pavement for a city and as you can imagine, there is a lot of data entry.

At the end of the day, I will need to know the total length of streets with brick, asphalt, and concrete. Column 'D' has the street material (Asphalt, Brick, Concrete) and Column 'E' will have the length. At the bottom of the sheet, under column 'E', I have cells that will show the total length for streets with Asphalt (E61), Brick (E63), and Concrete(E65), so I need a formula to enter in those cells that will look for the specific pavement materials it is totalling

Also, I am tracking streets with/without curb and gutter. If a street doesn't have it, I need to track how much will be needed. Basically, it will be the length (Column E) times 2 (both sides of the street). In column 'G' there will either be 'Yes' or 'No'. If 'Yes', then I don't need a total and the cell containg the amount of curb and gutter need (Column 'J') will be blank. However, if 'No', Column 'J' will have the total amount of curb and gutter needed ('E??' x 2)

Obviously the sheets will be different lengths so the cells will need to be copied and pasted.

View 4 Replies View Related

Sum Specific Columns And Rows?

May 25, 2014

I have built a capacity planner which is broken down in days.

In row 1 i have tagged the column with a week number indicator i.e. 5 columns (=5 days) are tagged "Week 1", next 5 tagged "week 2", etc.

I am trying to create a weekly view of this and need to sum the values of all cells on row 7 for a particular week i.e. I want to sum Cells R7, S7, T7, U7, V7 which represent the 5 working days in "week 1"

View 8 Replies View Related

Merits Of VBA Protect Vs Non-Protect

Jul 26, 2006

I would like to protect the intellectual property of an application and have read differing opinions of the merits of protecting VBA code. What are the opinions of the experts on this forum? Are the password breaker programs so advanced that protecting code is a waste of time and only a hinderance to debugging and troubleshooting?

I am using MS Excel 2003 (11.5612) on XP.

I apologize if this topic has already been covered on this forum. I searched but did not find exactly what I was looking for. I am happy to review an old post if one exists.

View 7 Replies View Related

Select Specific Columns Rather Than Entire Row

Sep 28, 2013

I plucked a macro off an old post from here (as I always do), but I'm having trouble tweaking it.

VB:
Sub completedtest()

Dim c As Range
Dim rngG As Range
For Each c In Intersect(ActiveSheet.UsedRange, Columns("i"))

[Code] ....

As it currently stands, the macro selects the entire row of rows containing the letter Y in column I. All I need to change is, I want to simply select columns B through I, rather than the entire row.

View 2 Replies View Related

Checkbox To Filter Columns With Specific Value?

May 4, 2014

I want a checkbox to filter column with specific value and hide others. And also there are two checkbox, one should be automaticly unchecked if we check another checkbox.

View 1 Replies View Related

Selecting Columns With Specific Titles?

May 26, 2014

I am looking for a way to select specific columns in excel that have specific characteristics in the header titles. For example, I have a very large worksheet with columns that specify the year and month (ie. "1900-8"). The years range from 1900 to 2011 and each year has "-1" to "-12" to represent the months of the year. Specifically, I am wanting to pick out all of the columns ending in "-8" (August).

View 14 Replies View Related

Cells Below A Specific Cell In Columns?

Feb 11, 2014

In my workbook almost all of the column include a RED cell.I want to delete the cells BELOW the RED cell in a column.;And also want to migrate the whole column which has not RED cell in a to new sheet.Here is what I need:

delete-the rows below red.xlsx

View 2 Replies View Related

Count The Number Of Used Columns In A Specific Row?

Sep 28, 2007

How can I count the number of used columns in a specific row? The below code doesn't work.

View 14 Replies View Related

Filter Columns With Specific String?

May 28, 2012

I want to filter columns from an excel spreadsheet where the value in the cells contains/includes the String "Create".

View 3 Replies View Related

Addition With Specific Criteria Over Two Columns

Nov 26, 2012

I have two columns with numbers in ranging as follows:

2
2.5
3
3.5
4
4.5
5

On the spreadsheet it looks like this:

4.5
5

4
4.5

3.5
3.5

3.5
4

3.5
3.5

3
3

3.5
3.5

What I need to show in the next column is a True where these two figures add up to 8 or more. However, the minimum in each column needs to be 4 and 4 i.e. if one column has 3.5 and the next 5 then return a value of False.

View 7 Replies View Related

Average Of Specific Cells In Various Columns

Aug 3, 2013

I am trying to find the average of a cell with a name in that may appear several times in various columns. I then need to find the average of the value against that name in all the columns that it occurs in. Example:

a
b
c
d
e
f
g
h
i
j
k

Aldridge Sean
2
3
3
Andrew Rob
4
3
3
Aldridge Sean
3
2
2

[Code] .....

In the above example I want to find the average score for aldridge sean in column b, f and j.

View 9 Replies View Related

How To Loop Through Specific Columns And Rows

Mar 25, 2014

I am stuck with looping columns and rows.What i am trying to do is... I have to loop through columns E3 to G3 and also rows of each column and check for a condition inside the column.How can i achieve that? I have the following structure.. How can i code it?

For i=E3 to G3 'Column loop
for j=4 to 47 'Row loop
'code to check if the value isnumber
next j
next i

View 9 Replies View Related

Search For A Word In Specific Columns

Dec 12, 2008

I am trying to create the ability to search for a word in specific columns. In my case below I want to search D5:E500 but it's not working. It searches the whole ppage.

Private Sub searchfind_Click()
Dim searches As String
searches = searchfirstname & searchlastname
If WorksheetFunction.CountIf(Range("D5:E500"), searches) = 0 Then
Exit Sub
End If
Cells.Find(What:=searches, After:=ActiveCell, SearchOrder:=xlByRows, SearchDirection:=xlDown, _
MatchCase:=False, SearchFormat:=False).Activate
End Sub

View 9 Replies View Related

Filtering Two Columns And Setting Specific Value In Third

Mar 4, 2009

I have requirement wherein, I have to put filter conditions on two separate columns in the same sheet & putting hard coded value eg. "XYZ" in third column for this selected range. I am using macro autofilter but its giving me errors for multiple filters.

View 9 Replies View Related

Copying Specific Columns Into A New Worksheet

Aug 20, 2008

I have a file that has various numbers of columns, some of which i need, some of which i do not. Under these columns, there are various rows, sometimes 50, sometimes 400. I need to write something that copies only the specific columns I need and pastes it into a new worksheet.

For example, in the data file there is are columns property type, loan balance current, and amortization type. I need them to be copied with the information in the rows below them to a new worksheet, to eliminate the unnecessary information in the data file.

View 9 Replies View Related







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