$Workbook = "C:\Scripts\20210802_ipaddress.xlsx" $Sheets=@() $WorkSheetNames=@() $table =@() $Excel = New-Excel -Path $Workbook $Sheets = $Excel | Get-Worksheet foreach($sheet in $Sheets) { $WorkSheetNames+=$sheet.Name } foreach($data in $WorkSheetNames) { $obj = New-Object PSObject Add-Member -InputObject $obj -MemberType NoteProperty -Name "Index" -Value $data $table +=$obj } $table | Export-Csv -Path "C:\Scripts\Index.csv" -Append -NoTypeInformation Import-Csv Path "C:\Automation Scripts\IPAM\Index.csv" | Export-Excel -Path "C:\Scripts\\20210812_ipaddress.xlsx" -WorkSheetname 'Index' -MoveToStart
1.Go to Insert > Link. 2.Under Link to, select Place in This Document. 3.Select the worksheet name and select OK.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)