Do you mean typing .PasteSpecial into VBA?
the syntax is like this
.PasteSpecial(Paste, Operation, SkipBlanks, Transpose)
for the first part, Paste, you can choose any of the following
xlPasteAll | Everything will be pasted. |
xlPasteAllExceptBorders | Everything except borders will be pasted. |
xlPasteAllMergingConditionalFormats | Everything will be pasted and conditional formats will be merged. |
xlPasteAllUsingSourceTheme | Everything will be pasted using the source theme. |
xlPasteColumnWidths | Copied column width is pasted. |
xlPasteComments | Comments are pasted. |
xlPasteFormats | Copied source format is pasted. |
xlPasteFormulas | Formulas are pasted. |
xlPasteFormulasAndNumberFormats | Formulas and Number formats are pasted. |
xlPasteValidation | Validations are pasted. |
xlPasteValues | Values are pasted. |
xlPasteValuesAndNumberFormats | Values and Number formats are pasted. |
<tbody>
</tbody>
for the second part, Operation, you can include these (provided that you are pasting numeric data and not a formula or a format or text)
[TABLE="width: 600"]
<tbody>[TR]
[TD]xlPasteSpecialOperationAdd[/TD]
[TD]Copied data will be added with the value in the destination cell.[/TD]
[/TR]
[TR]
[TD]xlPasteSpecialOperationDivide[/TD]
[TD]Copied data will be divided with the value in the destination cell.[/TD]
[/TR]
[TR]
[TD]xlPasteSpecialOperationMultiply[/TD]
[TD]Copied data will be multiplied with the value in the destination cell.[/TD]
[/TR]
[TR]
[TD]xlPasteSpecialOperationNone[/TD]
[TD]No calculation will be done in the paste operation.[/TD]
[/TR]
[TR]
[TD]xlPasteSpecialOperationSubtract[/TD]
[TD]Copied data will be subtracted with the value in the destination cell.[/TD]
[/TR]
</tbody>[/TABLE]
Leave this blank if you do not want an operation performed.
SkipBlanks, and Transpose are True or False values. If left blank they will by default be false, but if you would like blanks skipped, or for the data to be transposed, set the appropriate one to True