Guest User

Untitled

a guest
Sep 30th, 2019
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Start Excel
  2. $Excel=New-Object -ComObject Excel.Application
  3. #Open File
  4. $FilePath='C:\Path\To\OneDrive - Company Ltd\Desktop\testing.xlsx'
  5. $WorkBook=$Excel.Workbooks.Open($FilePath)
  6. #Make it visible (Just to check what is happening)
  7. $Excel.Visible=$true
Advertisement
Add Comment
Please, Sign In to add comment