Hello all! Happy New Year!
I have two macros as follows:
Sub Paste_Excel()
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
_______________________________________________________________________
Sub Paste_Text()
ActiveSheet.PasteSpecial Format:="Text", Link:=False, DisplayAsIcon:= _
False
End Sub
_______________________________________________________________________
I want to have one command button which functions as follows: IF the data to be pasted is from Excel, use Paste_Excel ELSEIF the data to be pasted is not from Excel, use Paste_Text.
How do I code this??
Thanks!!
I have two macros as follows:
Sub Paste_Excel()
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
_______________________________________________________________________
Sub Paste_Text()
ActiveSheet.PasteSpecial Format:="Text", Link:=False, DisplayAsIcon:= _
False
End Sub
_______________________________________________________________________
I want to have one command button which functions as follows: IF the data to be pasted is from Excel, use Paste_Excel ELSEIF the data to be pasted is not from Excel, use Paste_Text.
How do I code this??
Thanks!!