A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
If you just want the result of the formula, try
ActiveSheet.Range("E" & r).Value = ActiveSheet.Range("E1").Value
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
I have a protected sheet contain formula in each row depends to above row( for example C2=C1+1; C3=C2+1;...).and cells contained these formula are locked.
I like to allow users to insert row everywhere by keeping formula without unprotecting the sheet. When I am clicking "insert row" while protecting the sheet, users could insert a row but the locked inserted cells are not including any formula and excel doesn't permit to copy formula of above cells. is there any solution?
Thanks
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
If you just want the result of the formula, try
ActiveSheet.Range("E" & r).Value = ActiveSheet.Range("E1").Value
Good day Hans V
I read through this thread & would like to find out if you could perhaps e-mail me this sample workbook?
The dropbox link does not work any longer :-)
I've got a similar scenario than cgbs6183
Thank you in advance!
Dewald van Rooyen
Thanks for you help I think it worked. To delete a row I used this macro but it is giving me a debug error can you help also please?
Sub deleterow()
' Delete a row '
Selection.EntireRow.Delete Shift:=xlUp
End Sub
I got it, I used your code using delete Row and Fillup instead of insert and fill down
Thanks for you help I think it worked. To delete a row I used this macro but it is giving me a debug error can you help also please?
Sub deleterow()
' Delete a row '
Selection.EntireRow.Delete Shift:=xlUp
End Sub
Have you looked at the macros posted in this thread? They show how to unprotect the sheet, insert a row, copy formulas from the row above, and then protect the sheet again.