Excel and batch

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Rapid_Zorgz
Posts: 3
Joined: 05 Dec 2013 16:08

Excel and batch

#1 Post by Rapid_Zorgz » 05 Dec 2013 16:18

hey guys im new to batch programming and was wondering how i could create a batch file that opens a excel spreadsheet and then edits data in a certain column within a certain sheet

so
1) open a excel spreadsheet
2) target a certain column in a certain sheet
3) change data in that column
4) save it again


thanks in advanced

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: Excel and batch

#2 Post by Squashman » 05 Dec 2013 16:37

Can't edit Excel files with Batch. You can with PowerShell though.

Rapid_Zorgz
Posts: 3
Joined: 05 Dec 2013 16:08

Re: Excel and batch

#3 Post by Rapid_Zorgz » 06 Dec 2013 00:03

thanks

Rapid_Zorgz
Posts: 3
Joined: 05 Dec 2013 16:08

Re: Excel and batch

#4 Post by Rapid_Zorgz » 06 Dec 2013 00:17

how would u do it with powershell can u use powershell and C#

npocmaka_
Posts: 517
Joined: 24 Jun 2013 17:10
Location: Bulgaria
Contact:

Re: Excel and batch

#5 Post by npocmaka_ » 06 Dec 2013 06:56

Squashman wrote:Can't edit Excel files with Batch. You can with PowerShell though.


Also with VBscript and JScript via excel's com objects (with which you can make hybrid files)



@Rapid_Zorgz what exactly do you need?

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: Excel and batch

#6 Post by Squashman » 06 Dec 2013 08:33

Rapid_Zorgz wrote:how would u do it with powershell can u use powershell and C#

This isn't a PowerShell forum. You may want to find help somewhere else. I did this once many years ago as a one off using PowerShell. You might be able to find the thread on TechGuy.org.

Post Reply