Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Is is possible to delete the contents of a cell but to retain the formula assigned to it. I am trying to duplicate a worksheet and have copied the existing one, but when I try to delete the contents the formulas are also deleted. Many thanks for your help in advance. Simon. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Run this short macro on the copied worksheet:
Sub keepformulas() For Each r In ActiveSheet.UsedRange If r.HasFormula Then Else r.Clear End If Next End Sub -- Gary''s Student - gsnu200764 "SiH23" wrote: Hi, Is is possible to delete the contents of a cell but to retain the formula assigned to it. I am trying to duplicate a worksheet and have copied the existing one, but when I try to delete the contents the formulas are also deleted. Many thanks for your help in advance. Simon. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Deleting the values in the cells that cause the formula to return a result
other than blank, would result in the formula being in the cell, but invisible, or zero, or whatever default value the formula concluded. Vaya con Dios, Chuck, CABGx3 "SiH23" wrote: Hi, Is is possible to delete the contents of a cell but to retain the formula assigned to it. I am trying to duplicate a worksheet and have copied the existing one, but when I try to delete the contents the formulas are also deleted. Many thanks for your help in advance. Simon. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
F5SpecialConstantsOK
EditDelete Gord Dibben MS Excel MVP On Mon, 7 Jan 2008 06:24:03 -0800, SiH23 wrote: Hi, Is is possible to delete the contents of a cell but to retain the formula assigned to it. I am trying to duplicate a worksheet and have copied the existing one, but when I try to delete the contents the formulas are also deleted. Many thanks for your help in advance. Simon. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
alert before deleting contents of a cell | Excel Discussion (Misc queries) | |||
Deleting a worksheet but retaining values from the worksheet. | Excel Discussion (Misc queries) | |||
Deleting a worksheet but retaining values from the worksheet. | Excel Discussion (Misc queries) | |||
Retaining formula | Excel Worksheet Functions | |||
deleting/retaining duplicates | Excel Discussion (Misc queries) |