I need to modify code to special paste “Match Destination Formatting (M)” for data from IE.
The source is from a website that has 4 columns of data. If I manually right click on a cell and select paste option “Match Destination Formatting (M)”, the data populates in cells A1:D1. When I use the code all of the data populates in cell A1. How do I modify the code so that the data populates in cells A1:D1?
Sub Paste_Unformatted() If Application.CutCopyMode = xlCopy Then Range("A4").PasteSpecial Paste:=xlPasteValues Else ActiveSheet.Range("A4").Select ActiveSheet.PasteSpecial Format:="Text", _ Link:=False, _ DisplayAsIcon:=False End IfEnd Sub