473,549 Members | 2,745 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

calling VBA script from Python

16 New Member
I need to run a VBA script from python.
My VBA script just count the number of columns and number of rows in an excel sheet.
I need to execute that VBA script from inside python. Is it possible?
How can I do it?
Thank You!
May 24 '14 #1
1 2739
dwblas
626 Recognized Expert Contributor
Use subprocess.call to run an external command. Note that it may require a shell=True option.
May 24 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

9
3753
by: F. GEIGER | last post by:
I've dev'ed a Python prototype of an app, that besides the internals making it up has a gui. While test-driven dev'ing the app's internals in Python is fun as usual, dev'ing the GUI is not so funny, at least for me. I guess dev'ing a GUI in a test-driven way is not possible, or is it? I'm using wxPython, so if anyone has an idea... For...
2
1655
by: lamthierry | last post by:
Let's say I have a python function do some math like the following: def doMath(self): self.val = self.val + 1 How can I call this python function from C++? Assuming I have some sort of Python wrapper around my C++ codes.
1
1382
by: Stefan Barlow | last post by:
I have a mechanism that performs a server transfer to another page that uses the same codebehind class if an alternate page URL exists in the application variables. My problem is there is an endless loop because I cannot find the REAL script name calling the codebehind. Request.ServerVariables returns the original script name since it is a...
1
1032
by: IMRAN SAROIA | last post by:
Hi! How can I call the Javacript or Vbscript code from Web form provided that the Script code resides on the same web form.aspx Regards Imran
3
3539
by: Catalin Lungu | last post by:
Hi, I would like to call a python script from a link, something like this: <a href="midir/file1.rar" onclick="python_script?param1='cad1'&param2='cad'">Download file1</a> What is the correct sintax for this sentence? Or something similar... I want to can download the file but at the same time execute the script. TIA,
2
2789
by: Kevin | last post by:
i have a python file called pyq which outputs stock quotes, currently i also have a html file that takes stock ticker inputs, i would like to bridge the two by building another program that takes the html inputs and uses them to call the pyq stock ticker program and then output them into a text file... any idea how to do this? my tentative...
5
2558
by: Shuaib | last post by:
Hi! I have a python script which returns an Integer value. How do I call this script from a C programe, and use the result returned? Thanks for your time.
4
1946
by: Sandman | last post by:
Hi there, So here is the situation I'm in. My PHP script does something like this: 1. Update a DB (only once) 2. Send some post data to another PHP script (only once) 3. Output some stuff related to 1 and 2. I've done #2 by using input type="hidden" on a form, like so: print "<form action='../dir/register.php' method='post'
0
1039
by: Sagaert Johan | last post by:
Hi I am trying to call a javascript function inside a htmlpage opened in the WebBrowser control without sucses. I tried to iterate through the HtmlItem collection and called the InvokeMember("myfunction"); The function works when i have an internal link that calls the function when clicked.
2
1734
by: vgkhle | last post by:
hi all How can diff python scripts be called from a main script which is again a .py? os.system("python external_script.py") works fine, but what if I want to handle the un handled exceptions of the external scripts in the main script?? thanx in advance
0
7520
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7720
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7957
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7470
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6043
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5088
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3481
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1059
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.