A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Sub PstSpc() Dim Src As Range Dim Tgt As Range Dim Rpl As String Dim Pst As XlPasteType
Set Src = Selection
On Error Resume Next
Set Tgt = Application.InputBox(Prompt:="Please select the target cell", Type:=8)
On Error GoTo 0
If Tgt Is Nothing Then
Beep
Exit Sub
End If
Rpl = InputBox(Prompt:="F: format, V:Values, R: Formula", Default:="V")
Select Case UCase(Rpl)
Case "F"
Pst = xlPasteFormats
Case "V"
Pst = xlPasteValues
Case "R"
Pst = xlPasteFormulas
Case Else
Beep
Exit Sub
End Select
Src.Copy
Tgt.PasteSpecial Paste:=Pst
Application.CutCopyMode = False
End Sub