Import-Excel Extended HeaderName functionality#579
Import-Excel Extended HeaderName functionality#579ili101 wants to merge 1 commit intodfinke:masterfrom
Conversation
|
Hi, The last line of the code is not working for me Windows 10 Output: System.Collections.Specialized.OrderedDictionaryacwebbrowser |
cbbf205 to
8e7a102
Compare
|
@cprograemer84 I think you are running my example code on the original version and not on the version from my PR. |
I was using Import-Excel on a file and found that I don't like the headers names and that I don't need them all, I tried to use
-HeaderNamebut it was not doing exactly what I needed. First It depends on the headers position and not name, and also I can't skip columns I don't need.So I added the option to send HashTable to it (In addition to the existing array option) with the columns you want to get and there new name, this lets you do 3 things:
Example of getting only (Process Name, Start, Path) https://github.com/ili101/ImportExcel/blob/Import-ExcelExtendedHeaderName/Examples/Import-ExcelWithHeaderName.ps1
I don't know if this is the best way to do it, or if the implementation is good, So what do you think? I will like to get your opinions.