Author Topic: Excel Script  (Read 973 times)

0 Members and 1 Guest are viewing this topic.

Offline shimomura

  • Peasant
  • *
  • Posts: 57
  • Cookies: 0
    • View Profile
    • Shanaynay
Excel Script
« on: March 13, 2014, 06:39:39 am »
I was looking to write a script that reads an excel sheet, edits the sheet, and writes it back to the sheet or even better a whole new sheet.


For Example: If len(column b1) = 1: delete b1 and replace with c1.  (lol)


I know it's not a simple or straight forward task so I'm willing to look into any language that is the most efficient for the task.   


Any general leads would be nice, I'll do the rest of the research.
Who gives a fuck what color the dress is...

Offline RedBullAddicted

  • VIP
  • Sir
  • *
  • Posts: 519
  • Cookies: 189
    • View Profile
Re: Excel Script
« Reply #1 on: March 13, 2014, 07:00:31 am »
As far as I know those excel macros and all of the automation stuff is done in vba.
http://msdn.microsoft.com/en-us/library/ee814737%28v=office.14%29.aspx

Guess you can get the most out of it cause it is deeply integrated into excel. If you are looking for a more "general purpose" way have a look at the csv format. There are a lot of libraries for many languages that deal with csv files.

Cheers,
RBA
Deep into that darkness peering, long I stood there, wondering, fearing, doubting, dreaming dreams no mortal ever dared to dream before. - Edgar Allan Poe

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Excel Script
« Reply #2 on: March 13, 2014, 07:11:24 am »
I am sure Python has some sweet MS Office integration libs.

Offline vezzy

  • Royal Highness
  • ****
  • Posts: 771
  • Cookies: 172
    • View Profile
Re: Excel Script
« Reply #3 on: March 13, 2014, 02:23:00 pm »
I am sure Python has some sweet MS Office integration libs.

Yes, third party: http://www.python-excel.org/
Quote from: Dippy hippy
Just brushing though. I will be semi active mainly came to find a HQ botnet, like THOR or just any p2p botnet

Offline Zesh

  • Royal Highness
  • ****
  • Posts: 699
  • Cookies: 42
    • View Profile
Re: Excel Script
« Reply #4 on: March 13, 2014, 06:45:29 pm »
Use VBA. I did quite a bit of programming with VBA using Excel back in school but since I don't have MS Office installed I can't really help you there but just google some examples.