Commit Graph

130 Commits

Author SHA1 Message Date
DarkLite1
295b369a81 Improved paramter validation and fixed 'WorksheetName' position. Extra Pester tests added too. 2017-09-20 09:35:57 +02:00
DarkLite1
a0563d4daa Import-Excel updated help 2017-09-19 16:00:11 +02:00
DarkLite1
2c16cdcbfe Import-Excel select first worksheet by default 2017-09-19 15:55:13 +02:00
DarkLite1
d75350c659 Improved tests for emtpy rows after TopRow x 2017-09-11 14:06:45 +02:00
DarkLite1
323c52a24b Added alias HeaderRow for TopRow to ImportExcel 2017-09-08 12:53:23 +02:00
DarkLite1
e42fa83043 Added position to params of 'Import-Excel' 2017-08-22 08:48:20 +02:00
DarkLite1
662d5913ae Rewrote 'Import-Excel':
- Added parameter sets for proper parameter validation and to make sure '-NoHeader' and '-HeaderRow' aren't used together
- Added try/catch clause, CmdLetBinding and verbose messages
- Renamed 'HeaderRow' to 'TopRow' to avoid confusion with other parameters
- Renamed '-Header' to '-HeaderName'
- Added test for duplicate property names
- Added test for empty worksheet
- Added test for no data after TopRow
- Fixed incorrect import when there's no value in the first column
- Fixed values being imported under the wrong property name in case one
- Fixed incorrect import in case column A is empty and B and C not ( '$Worksheet.Dimension.Columns' is unreliable because it will say 2 columns are in use while it should say 3).
(Ex. Add data in cell B2 and C2, use the '-NoHeader' switch, notice P1 and P2 are incorrectly blanc.)
2017-08-21 15:34:30 +02:00
DarkLite1
d8d624ba9c Added the function 'Update-FirstObjectProperties'
Added help text in 'Export-Excel'
Added try/catch to 'Install' and 'InstallModule'
Improved code readability in 'Install' and 'InstallModule'
2017-07-26 13:37:08 +02:00
dfinke
b90087bd63 Updated to include ConvertTo-ExcelXlsx 2017-07-03 13:44:01 -04:00
dfinke
615f677b2e Added convert from Excel 2017-06-15 19:34:04 -04:00
dfinke
26f6df7168 Added Export-ExcelAsSQLInsert 2017-06-14 22:44:11 -04:00
DarkLite1
cd8a57605f Fix for Excel-Export #168
- Changed 'InvariantInfo' to 'CurrentInfo', to respect the systems
regioinal settings
- Added verbose text to see what's happening
2017-02-21 14:59:56 +01:00
DarkLite1
e68a5f27e5 Fixed 'DataOnly' header issue
This has been fixed: Looks like it adds the "headers" in the sheet to
the data when you specify -DataOnly
2017-02-14 09:38:08 +01:00
DarkLite1
7cdf40e0c8 Added 'Get-ExcelWorkbookInfo' 2017-02-14 09:13:46 +01:00
DarkLite1
9790cb958c Revert "Revert "Added 'DataOnly' parameter""
This reverts commit 782c027960.
2017-02-08 09:51:13 +01:00
DarkLite1
782c027960 Revert "Added 'DataOnly' parameter"
This reverts commit 1ee1396a56.
2017-02-08 09:50:39 +01:00
DarkLite1
1ee1396a56 Added 'DataOnly' parameter
Added 'DataOnly' parameter: When used we will only generate objects for
rows that contain text values, not for empty rows or columns.
2017-02-08 09:48:16 +01:00
DarkLite1
b93c8749d9 Added help
Added help text for 'Import-Excel'
2017-02-08 09:44:44 +01:00
dfinke
29e44e0aa1 Add scriptblock for Cell Fill Style 2016-12-22 11:24:18 -05:00
Xelsirko
710987d738 Fixes #129. 2016-09-28 11:18:32 +00:00
dfinke
3db1473c05 Fixed #115 2016-08-12 17:16:15 -04:00
dfinke
372fdc4213 Fixes #68 Import-Excel headers no data 2016-07-21 19:54:36 -04:00
dfinke
1d897286b7 Resolve the path with ProviderPath for UNC 2016-07-01 15:55:15 -04:00
dfinke
7b4178070a Updated for new ps1 2016-06-01 17:19:57 -04:00
dfinke
045234dd81 Only load PS Class for -gt V5. Thanks https://github.com/W1M0R 2016-04-30 15:23:13 -04:00
Brian Addicks
3c5381182f Added ValidateScript block to Path parameter for Import-Excel 2016-03-30 08:07:40 -04:00
dfinke
42d0ad0378 Add Plot function 2016-03-20 22:51:07 -04:00
dfinke
b777c06838 Added Get-Range, New-Plot and Plot Cos example 2016-03-18 09:36:18 -04:00
dfinke
ac71736725 Added Import-Html support and examples 2016-02-22 11:27:56 -05:00
dfinke
acb02d222e Implemented conditional text formatting 2016-01-17 14:56:25 -05:00
dfinke
25a970e743 Added Get-ExcelSheetInfo 2016-01-07 11:42:38 -05:00
dfinke
5908f33341 Initial commit 2015-12-19 11:39:19 -05:00
dfinke
652255ca9d Initial commit [charting] 2015-12-18 12:58:42 -05:00
dfinke
4c620ee630 Added several new features 2015-12-17 16:53:13 -05:00
dfinke
dc753b67b2 Set [Parameters] explicitly 2015-12-06 17:07:40 -05:00
dfinke
59d0c4fca7 Renamed Sheet1 parameter, added alias 2015-11-12 17:25:43 -05:00
dfinke
a256b69b24 Added HeaderRow #47 2015-10-19 18:42:12 -04:00
dfinke
cd46819c79 Added -NoHeader and returns .Value 2015-10-15 11:53:47 -04:00
dfinke
4b59eb0e75 Merged ValidateSet for Encoding and Extension 2015-10-01 11:11:05 -04:00
Irwin Strachan
3eac21c11a Update ImportExcel.psm1
Created a ValidateSet for Encoding and Extension. removed Extension from the params. Removed Encoding at the Export-Csv as it is already included in params
2015-10-01 11:11:04 -04:00
dfinke
abaabc6fa1 Update 2015-09-11 17:35:04 -04:00
dfinke
1b775ac5b9 Initial commit 2015-09-11 17:35:02 -04:00
Staffan Gustafsson
5f5ba10021 Use value instead of Text when reading cells to preserve types. 2015-09-08 10:25:59 -04:00
Francois Lachance-Guillemette
6c25606b91 Added missing Stream Close and Alias 2015-08-21 11:26:12 -04:00
Francois Lachance-Guillemette
434a3e5180 Added Reading in ConvertFrom-ExcelSheet + ...
Streamlined parameters in Import-Excel (still compatible)
2015-08-21 11:18:09 -04:00
Francois Lachance-Guillemette
5b2311c298 Allow reading even if file is open by Excel 2015-08-21 10:59:47 -04:00
dfinke
c878f743fd tweaked 2015-07-09 12:47:43 -04:00
dfinke
140aaba049 added example 2015-07-09 12:47:42 -04:00
dfinke
63ee3908a8 try 2015-07-09 12:47:42 -04:00
Doug Finke
20d84ace37 works with hashtable 2015-07-09 12:47:41 -04:00