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
Dear Hans
It's working. the only problem is:
I am trying to put formula for some cells in inserted row for example E(r)=E1.
while I have a constant figure(i.e 400) in E1 it's working, but when I have a formula in E1 with result of 400, it doesn't work. E(r) is 0 or empty in this case!
Thanks so much.This solution covers all my requirement. I'll test it and come back to you if faced with any problem.
Best regards
I need to locate in Row(...) and insert a row above it. the row # I need to insert will caculate through a formula result in C10.
for example if C10=15 then I need to isert a row above row(15) and if C10=20 I need an insert abow row(20).
What exactly do you mean by "position of insert a row will calculated in one cell of sheet"?