473,322 Members | 1,540 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

run excel macro using vbscript

3
I have an excel sheet "project.xlsm" with a macro "add" that update a cell value.
i want to run the macro using vbscript externally.
the important thing is i don't want to vbscript to open the workbook or close it as i will be openning and closing it manually, the vbscript should only run the macro.
any help please
Nov 6 '13 #1
1 1776
I have a very similar problem, I want a Visual Basic 2005 program to run a macro in Excel 2007. I have googeled for days, but all I found were Solutions, where the workbook was opened or a new workbook was added. The problem is, the workbook should already be open (manually opened) and the VB program should only trigger the macro, but not reopen the whole workbook!
I would be very happy for any kind of ideas!
Nov 26 '13 #2

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

Similar topics

2
by: Mrs Howl | last post by:
I don't know if there's even a way to do what I want. I click on a button in an Access form, and it opens an instance of Excel, and opens a workbook and runs a macro that's in it. So far, fine,...
0
by: Rich Wallace | last post by:
Hello all, Looking for suggestions and tips if possible. I have an application running on a file server that utilizes the FileSystemWatcher to trap when any Excel files are saved by a user. I...
2
by: cr113 | last post by:
I just upgraded from Office 2000 to Office 2003. My VB.NET Excel macro calls don't work any longer. Here is how I make my Excel macro call from VB.NET: Dim objExcel as Excel.Application ...
0
by: Elena | last post by:
I'm running a VB.NET application that fills an Excel spread sheet. I have a Macro that I call to run some sizing in the worksheet. Everything runs perfectly, but I need to delete the Macro before...
1
by: jjGirl | last post by:
All: I'm working on what should be some simple VB code for an Excel macro. For example, I'm replacing "<p>" with a space and using the following snipit of code: RP = ActiveCell.Replace("<p>", "...
0
by: uspramod | last post by:
hi the source is an excel file it is pivoted, i want to do unpivoting using vbscript regards Pramod
1
by: omar07266742 | last post by:
Hi, How can I run an excel macro using access macros?. Any suggestion without using VBA? Regards Omar
1
by: irGed | last post by:
Hi, I'm trying to pass a parameter to an VBA Excel function but I always got this error: Type Mismatch error This is my sample Excel function: Public Function...
1
by: preciouslife73 | last post by:
I have read a few available functions similar to my concerns. And I have noticed some were not answered for a long time. My concerns is that what was provided in the forum, when a query or a table...
0
by: Suggz | last post by:
Hi All, Copying code from vba to vbscript did not quite work. I was hoping if anyone could give me a hand. The purpose of the code is to sort the selection so that the smallest value is on the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.