Excel VBA Macro: Check content (of clipboard?) before pasting

后端 未结 4 1326
误落风尘
误落风尘 2021-01-06 07:29

I\'ve had some serious issues with pasting data from various sources into Excel. Excel tends to try to be smart and does all kinds of silly formating. We need the data as te

4条回答
  •  日久生厌
    2021-01-06 07:47

    This isn't the greatest solution, but it technically works. Just try them both.

    On Error Resume Next
    ActiveSheet.PasteSpecial Format:=Text, Link:=False, DisplayAsIcon:=False
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
    

提交回复
热议问题