Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have this very simple code behind a command button on a worksheet; but it
is not behaving as i want it to... The portion that says: ...PasteSpecial Paste:=xlPasteFormulas, ought to copy only the formulas, not any of the values; however, it is copying all (as woudl a simple "paste") Any suggestions will be greatly apreciated, Mark Private Sub cmdInsertRow_Click() ActiveSheet.Unprotect Password:="TDA" TargetRow = ActiveCell.Row Rows(TargetRow).Offset(1, 0).Insert shift:=xlDown Range(TargetRow & ":" & TargetRow).Copy Range(TargetRow + 1 & ":" & TargetRow + 1).PasteSpecial _ Paste:=xlPasteFormulas, Operation:=xlNone, SkipBlanks:=False, Transpose:=False ActiveSheet.Protect Password:="TDA" End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy formulas without associated values | Excel Worksheet Functions | |||
Copy Values, not formulas | Excel Programming | |||
Copy formulas, not values | Excel Programming | |||
How to Copy Formulas not Values ... | Excel Programming | |||
Range COPY function - how to copy VALUES and not formulas | Excel Programming |