Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
i have the following code which removes al ceel formulas and saves the sheet.
i would like to leave some of the formulas active but not all can anybody help thankyou john tempest Private Sub CommandButton1_Click() Dim wkbk As Workbook, sh As Worksheet Worksheets("MANUAL TS").Copy Set wkbk = ActiveWorkbook ' get rid of all cell formulas For Each sh In wkbk.Worksheets With sh.UsedRange .Value = .Value 'getrid of command button' ActiveSheet.OLEObjects("CommandButton1").Delete End With Next wkbk.SaveAs "C:\Documents and Settings\Administrator\My Documents\HOWDENS\TIMESHEET\ " & Sheets("MANUAL TS").Range("B5") & ".xls" wkbk.Close End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel should allow delete cell's value but leave formula alone. | Excel Discussion (Misc queries) | |||
copy and pasting a find all list into another column | Excel Discussion (Misc queries) | |||
highlight/color cells with specific character inside | Excel Worksheet Functions | |||
How do I clear a worksheet of values, but leave formulas intact? | Excel Worksheet Functions | |||
Relative Macro Help on Keystrokes | Excel Discussion (Misc queries) |