Hello! I want to write code for connect VBA for Excel script. How I make this? Thank You! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hello! I want to write code for connect VBA for Excel script. How I make this? Thank You!

20th Oct 2017, 5:35 AM
Artemiy
6 Answers
+ 6
VBA is embedded into MS applications, so what exactly do you want to do? Write a code in a different language which would inject instructions into VBA environment in Excel or..?
20th Oct 2017, 7:07 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 5
If just for reading, you may use pandas read_excel() method. Works like a charm, really (as everything in pandas :) For xls data manipulation (also saving an .xls) openpyxl might do the trick.
22nd Oct 2017, 10:38 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
0
Don't understand your question. Connect to Excel or connect from Excel? Also, what are you connecting to?
20th Oct 2017, 7:07 AM
Duncan
Duncan - avatar
0
Duncan, connect to Excel, import tables as array to python script
22nd Oct 2017, 12:47 PM
Artemiy
0
Ok, I haven't been that adventurous just yet, so can't help with this one sorry.
22nd Oct 2017, 7:07 PM
Duncan
Duncan - avatar