Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.
Dim xlObject As EXCEL.Application Dim xlWB As EXCEL.Workbook Dim r As Long Set xlObject = New EXCEL.Application 'This Adds a new woorkbook, you could open the workbook from file also Set xlWB = xlObject.Workbooks.Add Clipboard.clear 'Clear the Clipboard With MSHFlexGrid_LOAD_RECAP 'Select Full Contents (You could also select partial content) .Col = 0 'From first column .Row = 0 'From first Row (header) .ColSel = .Cols - 1 'Select all columns .RowSel = .Rows - 1 'Select all rows Clipboard.SetText .Clip 'Send to Clipboard End With With xlObject.ActiveWorkbook.ActiveSheet xlObject.ActiveWorkbook.ActiveSheet.Columns("A:V").HorizontalAlignment = xlLeft xlObject.ActiveWorkbook.ActiveSheet.Columns("A:V").NumberFormat = "@" xlObject.ActiveWorkbook.ActiveSheet.Range("a3") = "Load result:" xlObject.ActiveWorkbook.ActiveSheet.Range("a3").Font.Bold = True xlObject.ActiveWorkbook.ActiveSheet.Range("B3") = Format(Date, "mmm dd, yyyy") xlObject.ActiveWorkbook.ActiveSheet.Range("b3").Font.Bold = True xlObject.ActiveWorkbook.ActiveSheet.Range("D5").NumberFormat = "0" .Range("A6").Select 'Select Cell A1 (will paste from here, to different cells) .Paste 'Paste clipboard content
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.