Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2314

Powershell Script Excel 4 in 1

$
0
0

Hello,

I hope this to me here somebody can help. First excause for mine in English.

I have started to build script for powershell and do not get on. I have 4 Exceltable in 1 Exceldatei should be opened so that I below 4 table sides have to open instead of everybody individually.

$Excel = New-Object -Comobject Excel.Application
$Excel.Visible = $true

$Filepath = "D:\Data\bs000dp7u\Desktop\Excel\S6.csv"
$Workbook = $Excel.Workbooks.Open($Filepath)

$Filepath = "D:\Data\bs000dp7u\Desktop\Excel\S9.csv"
$Workbook = $Excel.Workbooks.Open($Filepath)

$Filepath = "D:\Data\bs000dp7u\Desktop\Excel\s11.csv"
$Workbook = $Excel.Workbooks.Open($Filepath)

$Filepath = "D:\Data\bs000dp7u\Desktop\Excel\S12.csv"
$Workbook = $Excel.Workbooks.Open($Filepath)

If one can also split fade out like z.b. column C,D,G and M.

with friendly ones greet


Viewing all articles
Browse latest Browse all 2314