INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Update/Add a row in an excel file available on sharepoint

Update/Add a row in an excel file available on sharepoint

(OP)
Hi

I have to maintain an excel file available on our company's sharepoint site. Lets say it exists at the following link:

http:// some server /somelocation/ excelfile.xls

Excel file just have one single sheet "Sheet1".

Sheet1 has a the following columns (and rows containing valid values) which stores access information for a repository/project/platform etc. See attached image.

What I'm looking for is to:
1. Checkout this file.
2. Add/update (if userid already exists) in this excel file.
3. Checkin the file back.


for ex:
If my powershell script is "update_sp_excel", then, if I'm passing:

update_sp_excel -userid:u654321 -action:modify -field:Status -value:Active

then, this script should checkout the file from Sharpoint, update the last line in the excel file and set the Status to Active for user "u654321" and finally checkin the file.

If I pass:
update_sp_excel -userid:u666666 -vcs:Mercurial -project:AEIH -module:Skrono -platform:Linux -repository:/a/b/c/d -Access:RW -action:add -Date:"10/16/2012 14:00:00 MT" -status:Inactive

then, this script should checkout the file from Sharpoint, add a new entry in the excel file's sheet "Sheet1" as per the values passed above to the script and finally checkin the file.


Any help. If not the full script but atleast on how to checkout a file from sharepoint link, edit/add a row and checkin it back. Thanks.

RE: Update/Add a row in an excel file available on sharepoint

(OP)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close