Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Can a row containing protected & unprotected cells be copied?

I have a large workbook that contains a ton of data, multiple formulas as
well as Vlookups which is distrbuted to a number of users. Currently the
workbook contains three tabs, two of which are data tabs supporting the look
up functions. One tab is considered the "data entry" page.

Some of the users are more Excel savvy than others therefore in an effort to
prevent users from accidentally deleting formulas we decided to lock cells
containing formulas and those populated by the result of a Vlookup. On the
data entry tab my users need to be able to copy & insert a row potentially in
the middle of a worksheet, with the ability to only change certain cells in
the new row. is this feasible? I can copy and paste individual cells that are
not locked however cannot copy a complete line.



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default Can a row containing protected & unprotected cells be copied?

When you go to protect the sheet, place a check in the box to "insert rows".

By default, the new row assumes formatting now of row above, although you
can choose to use formatting from row below via the insert helper box (little
box that appears often when you paste, not sure of exact name)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jannine" wrote:

I have a large workbook that contains a ton of data, multiple formulas as
well as Vlookups which is distrbuted to a number of users. Currently the
workbook contains three tabs, two of which are data tabs supporting the look
up functions. One tab is considered the "data entry" page.

Some of the users are more Excel savvy than others therefore in an effort to
prevent users from accidentally deleting formulas we decided to lock cells
containing formulas and those populated by the result of a Vlookup. On the
data entry tab my users need to be able to copy & insert a row potentially in
the middle of a worksheet, with the ability to only change certain cells in
the new row. is this feasible? I can copy and paste individual cells that are
not locked however cannot copy a complete line.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Can a row containing protected & unprotected cells be copied?

Luke - thanks for the input. I have the "insert rows" boxed checked however
I am unable to copy the entire row (above or below) into the new line...

Any thoughts?

"Luke M" wrote:

When you go to protect the sheet, place a check in the box to "insert rows".

By default, the new row assumes formatting now of row above, although you
can choose to use formatting from row below via the insert helper box (little
box that appears often when you paste, not sure of exact name)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jannine" wrote:

I have a large workbook that contains a ton of data, multiple formulas as
well as Vlookups which is distrbuted to a number of users. Currently the
workbook contains three tabs, two of which are data tabs supporting the look
up functions. One tab is considered the "data entry" page.

Some of the users are more Excel savvy than others therefore in an effort to
prevent users from accidentally deleting formulas we decided to lock cells
containing formulas and those populated by the result of a Vlookup. On the
data entry tab my users need to be able to copy & insert a row potentially in
the middle of a worksheet, with the ability to only change certain cells in
the new row. is this feasible? I can copy and paste individual cells that are
not locked however cannot copy a complete line.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default Can a row containing protected & unprotected cells be copied?

I'm afraid the method I described would only let you insert a "blank" new row
(although formatting would be the same).

To copy cells (presumably containing formulas) would in essence be letting a
user write formulas into protected cells, which of course goes against the
reason for protecting the worksheet.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jannine" wrote:

Luke - thanks for the input. I have the "insert rows" boxed checked however
I am unable to copy the entire row (above or below) into the new line...

Any thoughts?

"Luke M" wrote:

When you go to protect the sheet, place a check in the box to "insert rows".

By default, the new row assumes formatting now of row above, although you
can choose to use formatting from row below via the insert helper box (little
box that appears often when you paste, not sure of exact name)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jannine" wrote:

I have a large workbook that contains a ton of data, multiple formulas as
well as Vlookups which is distrbuted to a number of users. Currently the
workbook contains three tabs, two of which are data tabs supporting the look
up functions. One tab is considered the "data entry" page.

Some of the users are more Excel savvy than others therefore in an effort to
prevent users from accidentally deleting formulas we decided to lock cells
containing formulas and those populated by the result of a Vlookup. On the
data entry tab my users need to be able to copy & insert a row potentially in
the middle of a worksheet, with the ability to only change certain cells in
the new row. is this feasible? I can copy and paste individual cells that are
not locked however cannot copy a complete line.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 117
Default Can a row containing protected & unprotected cells be copied?

Jannine,

The only way I can think of accomplishing your goal is to temporarily
Unprotect the worksheet.

Below is a macro that can be placed into a general module of the workbook.

As indicated, when run it will first ask for confirmation to insert a row.
If the answer is No, nothing will happen. If the answer is Yes then
unprotect the active worksheet, insert a blank row with the formatting of
the row above. Copy the contents of the row above and then re-protect the
worksheet.

It has no error trapping so if you pursue this method you may want to seek
more expert advice on macros.

Hope this helps.

Best Regards.



Private Sub InsertCopiedRow()
'
' UnProtect the ActiveWorksheet,
' At the active row, insert a row
' Copy from the row above
' Protect the Worksheet.
'
ActiveSheet.Unprotect
ActiveCell.EntireRow.Insert Shift:=xlDown,
CopyOrigin:=xlFormatFromLeftOrAbove
ActiveCell.EntireRow.FillDown
ActiveSheet.Protect DrawingObjects:=True, Contents:=True,
Scenarios:=True
End Sub



"Jannine" wrote in message
...
Luke - thanks for the input. I have the "insert rows" boxed checked
however
I am unable to copy the entire row (above or below) into the new line...

Any thoughts?

"Luke M" wrote:

When you go to protect the sheet, place a check in the box to "insert
rows".

By default, the new row assumes formatting now of row above, although you
can choose to use formatting from row below via the insert helper box
(little
box that appears often when you paste, not sure of exact name)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jannine" wrote:

I have a large workbook that contains a ton of data, multiple formulas
as
well as Vlookups which is distrbuted to a number of users. Currently
the
workbook contains three tabs, two of which are data tabs supporting the
look
up functions. One tab is considered the "data entry" page.

Some of the users are more Excel savvy than others therefore in an
effort to
prevent users from accidentally deleting formulas we decided to lock
cells
containing formulas and those populated by the result of a Vlookup. On
the
data entry tab my users need to be able to copy & insert a row
potentially in
the middle of a worksheet, with the ability to only change certain
cells in
the new row. is this feasible? I can copy and paste individual cells
that are
not locked however cannot copy a complete line.







  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 117
Default Can a row containing protected & unprotected cells be copied?

Sorry. Here is the complete macro.

Private Sub InsertCopiedRow()
'
' Display confirmation message box Yes/No
' UnProtect the ActiveWorksheet,
' At the active row, insert a row
' Copy from the row above
' Protect the Worksheet.
'
If MsgBox("Do you want to insert a row", vbYesNo + vbDefaultButton2) _
= vbYes Then
ActiveSheet.Unprotect
ActiveCell.EntireRow.Insert Shift:=xlDown,
CopyOrigin:=xlFormatFromLeftOrAbove
ActiveCell.EntireRow.FillDown
ActiveSheet.Protect DrawingObjects:=True, Contents:=True,
Scenarios:=True

Else
Exit Sub
End If

End Sub



"Jannine" wrote in message
...
Luke - thanks for the input. I have the "insert rows" boxed checked
however
I am unable to copy the entire row (above or below) into the new line...

Any thoughts?

"Luke M" wrote:

When you go to protect the sheet, place a check in the box to "insert
rows".

By default, the new row assumes formatting now of row above, although
you
can choose to use formatting from row below via the insert helper box
(little
box that appears often when you paste, not sure of exact name)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jannine" wrote:

I have a large workbook that contains a ton of data, multiple formulas
as
well as Vlookups which is distrbuted to a number of users. Currently
the
workbook contains three tabs, two of which are data tabs supporting
the look
up functions. One tab is considered the "data entry" page.

Some of the users are more Excel savvy than others therefore in an
effort to
prevent users from accidentally deleting formulas we decided to lock
cells
containing formulas and those populated by the result of a Vlookup. On
the
data entry tab my users need to be able to copy & insert a row
potentially in
the middle of a worksheet, with the ability to only change certain
cells in
the new row. is this feasible? I can copy and paste individual cells
that are
not locked however cannot copy a complete line.







  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Can a row containing protected & unprotected cells be copied?

Thanks for the feedback. We found Bassman's suggestion to use a macro solves
the problem.

Again - I appreciate your help
Jannine

"Luke M" wrote:

I'm afraid the method I described would only let you insert a "blank" new row
(although formatting would be the same).

To copy cells (presumably containing formulas) would in essence be letting a
user write formulas into protected cells, which of course goes against the
reason for protecting the worksheet.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jannine" wrote:

Luke - thanks for the input. I have the "insert rows" boxed checked however
I am unable to copy the entire row (above or below) into the new line...

Any thoughts?

"Luke M" wrote:

When you go to protect the sheet, place a check in the box to "insert rows".

By default, the new row assumes formatting now of row above, although you
can choose to use formatting from row below via the insert helper box (little
box that appears often when you paste, not sure of exact name)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jannine" wrote:

I have a large workbook that contains a ton of data, multiple formulas as
well as Vlookups which is distrbuted to a number of users. Currently the
workbook contains three tabs, two of which are data tabs supporting the look
up functions. One tab is considered the "data entry" page.

Some of the users are more Excel savvy than others therefore in an effort to
prevent users from accidentally deleting formulas we decided to lock cells
containing formulas and those populated by the result of a Vlookup. On the
data entry tab my users need to be able to copy & insert a row potentially in
the middle of a worksheet, with the ability to only change certain cells in
the new row. is this feasible? I can copy and paste individual cells that are
not locked however cannot copy a complete line.



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Can a row containing protected & unprotected cells be copied?

Bassman - thanks bunches for the suggestion to use a macro, it seems to have
corrected the problem.

I appreciate your help!

Thansk again,
Jannine

"Bassman62" wrote:

Sorry. Here is the complete macro.

Private Sub InsertCopiedRow()
'
' Display confirmation message box Yes/No
' UnProtect the ActiveWorksheet,
' At the active row, insert a row
' Copy from the row above
' Protect the Worksheet.
'
If MsgBox("Do you want to insert a row", vbYesNo + vbDefaultButton2) _
= vbYes Then
ActiveSheet.Unprotect
ActiveCell.EntireRow.Insert Shift:=xlDown,
CopyOrigin:=xlFormatFromLeftOrAbove
ActiveCell.EntireRow.FillDown
ActiveSheet.Protect DrawingObjects:=True, Contents:=True,
Scenarios:=True

Else
Exit Sub
End If

End Sub



"Jannine" wrote in message
...
Luke - thanks for the input. I have the "insert rows" boxed checked
however
I am unable to copy the entire row (above or below) into the new line...

Any thoughts?

"Luke M" wrote:

When you go to protect the sheet, place a check in the box to "insert
rows".

By default, the new row assumes formatting now of row above, although
you
can choose to use formatting from row below via the insert helper box
(little
box that appears often when you paste, not sure of exact name)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jannine" wrote:

I have a large workbook that contains a ton of data, multiple formulas
as
well as Vlookups which is distrbuted to a number of users. Currently
the
workbook contains three tabs, two of which are data tabs supporting
the look
up functions. One tab is considered the "data entry" page.

Some of the users are more Excel savvy than others therefore in an
effort to
prevent users from accidentally deleting formulas we decided to lock
cells
containing formulas and those populated by the result of a Vlookup. On
the
data entry tab my users need to be able to copy & insert a row
potentially in
the middle of a worksheet, with the ability to only change certain
cells in
the new row. is this feasible? I can copy and paste individual cells
that are
not locked however cannot copy a complete line.








  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 117
Default Can a row containing protected & unprotected cells be copied?

You're welcome. Glad it helped.

"Jannine" wrote in message
...
Bassman - thanks bunches for the suggestion to use a macro, it seems to
have
corrected the problem.

I appreciate your help!

Thansk again,
Jannine

"Bassman62" wrote:

Sorry. Here is the complete macro.

Private Sub InsertCopiedRow()
'
' Display confirmation message box Yes/No
' UnProtect the ActiveWorksheet,
' At the active row, insert a row
' Copy from the row above
' Protect the Worksheet.
'
If MsgBox("Do you want to insert a row", vbYesNo + vbDefaultButton2)
_
= vbYes Then
ActiveSheet.Unprotect
ActiveCell.EntireRow.Insert Shift:=xlDown,
CopyOrigin:=xlFormatFromLeftOrAbove
ActiveCell.EntireRow.FillDown
ActiveSheet.Protect DrawingObjects:=True, Contents:=True,
Scenarios:=True

Else
Exit Sub
End If

End Sub



"Jannine" wrote in message
...
Luke - thanks for the input. I have the "insert rows" boxed checked
however
I am unable to copy the entire row (above or below) into the new
line...

Any thoughts?

"Luke M" wrote:

When you go to protect the sheet, place a check in the box to "insert
rows".

By default, the new row assumes formatting now of row above, although
you
can choose to use formatting from row below via the insert helper box
(little
box that appears often when you paste, not sure of exact name)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jannine" wrote:

I have a large workbook that contains a ton of data, multiple
formulas
as
well as Vlookups which is distrbuted to a number of users.
Currently
the
workbook contains three tabs, two of which are data tabs supporting
the look
up functions. One tab is considered the "data entry" page.

Some of the users are more Excel savvy than others therefore in an
effort to
prevent users from accidentally deleting formulas we decided to
lock
cells
containing formulas and those populated by the result of a Vlookup.
On
the
data entry tab my users need to be able to copy & insert a row
potentially in
the middle of a worksheet, with the ability to only change certain
cells in
the new row. is this feasible? I can copy and paste individual
cells
that are
not locked however cannot copy a complete line.










Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete unprotected cells in protected worksheet Len Silva Excel Worksheet Functions 1 July 30th 08 02:24 PM
Protected worksheet with unprotected cells i.c.w. remarks FrankOtter68 Excel Worksheet Functions 1 April 17th 06 04:21 AM
Can some cells remain unprotected in a protected spreadsheet ? Detenbeck3890 Excel Discussion (Misc queries) 2 January 12th 06 12:54 AM
Move cursor through all unprotected cells in a protected worksheet Bob Simpson Excel Discussion (Misc queries) 9 November 18th 05 06:50 PM
Tab key don't work in unprotected cells in a protected sheet Chad Excel Discussion (Misc queries) 0 August 16th 05 02:00 AM


All times are GMT +1. The time now is 02:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"