I am a newby to powershell and am trying to automate a complex process. I need to copy and paste a 3 columns of data from one spreadsheet to a second one which will then be exported to an SAP transaction line by line. In my search I found the link below that discusses using $arr1 = @(0) * 20 to create the array. I have two questions.
The first question is what is the (0) referencing?
Also, using this formula how do I reference the workbook, sheet, and column that I need to use to create the array? Any help would be greatly appreciated.
@(in help (Get-Help 'about_arrays' -ShowWindowas well as inGet-Help 'about_operators' -ShowWindow). You know that@( )is an Array subexpression operator then...Import-CSVandExport-CSVcmdlets. If you're working with standard workbooks/worksheets, LazyWinAdmin and RamblingCookieMonster both have great articles about using the COM interface to access Excel files, and RCM's PSExcel custom module is great for instances where you don't have office installed, such as on a Windows Server instance