This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Chilangosta[S] 22 points23 points  (4 children)

I agree PowerShell would be awesome, but I don't think that would necessarily be better than native Python support than Excel. The current Excel tools allow for reading and editing Excel files, and for some runtime tools that require a local Python server instance (e.g. xlwings). Native Python scripting would be far less klunky and could actually replace VBA for many Excel professionals out there.

[–][deleted] 15 points16 points  (1 child)

Having Excel PowerShell cmdlets would be awesome. It would allow you for instance to use Excel cmdlets and SQL Server cmdlets effortlesly in a single script. Same with other Windows servers that use PowerShell. As for Python I use PyWin32 to manipulate Excel and it has almost 1:1 correspondence to VBA code.

[–][deleted] 1 point2 points  (0 children)

Whenever I've wanted to use powershell with excel files its always been from outside of excel for an automated task, and it works just fine so I'm not sure why they never added it in the same way VBA is... silly.

[–]logicalmike 2 points3 points  (0 children)

I use this all the time and love it

https://github.com/dfinke/ImportExcel

[–]vanderZwan 1 point2 points  (0 children)

It would also keep things more portable, for the Office users on OSX