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