Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

VBScript paste data copied from IE into Excel and Match Destination Formatting

$
0
0

Hi Guys,

I have some data that I'm copying from a web based inventory program at work and I need to use VBScript to paste it into Excel the same as if I went to the paste button and selected "Match Destination Formatting" so that it retains all the columns but none of the hyperlinks. This is as far as I've gotten (I'm new to VBS so any more efficient suggestions would be appreciated).

Dim objExcel
Dim objBook
Dim objSheet
Set objExcel = CreateObject("Excel.Application")
Set objBook = objExcel.Workbooks.Add()
Set objSheet = objBook.Worksheets("Sheet1")
objExcel.Visible=true
objSheet.PasteSpecial-4122

Sorry if this is in the wrong spot.

regards,

sirnorman3


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>