PowerShell tricks – Convert copied range from excel to an array of PSObjects

26919750041_937f0af14b_m
In this post, I would like to share a simple function that converts tables copied from Excel to the clipboard into PowerShell objects.
While there are several more efficient ways to retrieve data out of Excel files (e.g. COM, EPPlus), I sometimes just want something quick and dirty to get the job at hand done.

Usage:
ConvertFromExcelClip

shareThoughts


Photo Credit: Sina Farhat – Webcoast via Compfight cc

Advertisements

One thought on “PowerShell tricks – Convert copied range from excel to an array of PSObjects

I'd love to hear what you think

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s