Change phrasing to show better MD style

Added additional headings to read more easily.
This commit is contained in:
Davis Henckel
2021-11-26 14:42:44 -08:00
committed by GitHub
parent 1c8f8d2a3d
commit 0d4a32e266

View File

@@ -12,13 +12,14 @@ $WorkSheet = $ExcelPkgFile.Workbook.Worksheets["sheet1"].Cells #open excel works
Visual of Data Structure: Visual of Data Structure:
![DataStructureExcelPkg](/images/FAQ_Images/DataStructureExcelPkg.png) ![DataStructureExcelPkg](/images/FAQ_Images/DataStructureExcelPkg.png)
Modify a specific value by accessing row/col like a 2D Array: ### Modify a Specific Value in a File
Values can be accessed by row, col. Similar to a 2D array.
```powershell ```powershell
$WorkSheet[1,4].Value = "New Column Header" #Starts at index 1 not 0 $WorkSheet[1,4].Value = "New Column Header" #Starts at index 1 not 0
``` ```
Contents of file.xlsx after modifying: Contents of file.xlsx after modifying:
![ExcelFileContentsPostAdd](/images/FAQ_Images/ExcelFileContentsPostAdd.png) ![ExcelFileContentsPostAdd](/images/FAQ_Images/ExcelFileContentsPostAdd.png)
Can also load a value at a specific index: ### Load Value at Specific Index
```powershell ```powershell
$ValueAtIndex = $WorkSheet[2,1].Value #Loads the value at row 2, column A $ValueAtIndex = $WorkSheet[2,1].Value #Loads the value at row 2, column A
``` ```