473,388 Members | 1,256 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,388 software developers and data experts.

Determining if Excel VBA macro still running?

Hi everyone,

I had a macro I wrote in VBA which created several dozen spreadsheets
based off a master spreadsheet. Code runs smoothly in VBA, but trying
to port it over to VB caused significant performance issues. I decided
the best way would be to just run the VBA macro from VB.

The problem I'm having is that the macro takes some time to run and
there's no indication of progress on the VB form I created. I would
like to write something that would indicate the macro is being
executed and create a message box when the process is completed. I'm
still new to VBA and VB so any help would be appreciated.
Aug 30 '08 #1
1 5956
Some ideas:

An idea is that you could possibly create a txt file and then log an
occasional message to that file during the process so that you can
fairly easily determine that it is working.

A module that tells the user that the macro is processing. Same type
of an idea of an error log, but the messages would show to the user on
the computer that the code is running.

A pop-up box that tells the user that it is running.

Perhaps a process bar indicator on a module might work - something
that shows the user how far through the process they are.

Depends on how you want the program to show the user that the
processes are working... You have lots of options.

Melissa

On Aug 30, 11:14*am, ElPresidente <chickenparme...@gmail.comwrote:
Hi everyone,

I had a macro I wrote in VBA which created several dozen spreadsheets
based off a master spreadsheet. Code runs smoothly in VBA, but trying
to port it over to VB caused significant performance issues. I decided
the best way would be to just run the VBA macro from VB.

The problem I'm having is that the macro takes some time to run and
there's no indication of progress on the VB form I created. I would
like to write something that would indicate the macro is being
executed and create a message box when the process is completed. I'm
still new to VBA and VB so any help would be appreciated.
Aug 31 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sylvia | last post by:
Dear All, Would appreciate if someone can help me out on this. I have an Excel Add-in which is only available on the web server. The Add-in allows user to retrieve data from a proprietary...
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,...
1
by: Steven Stewart | last post by:
I have a user who has been using Excel for a while to keep statistics and print reports. She finds using it cumbersome because of long formulas and a lot of copying and pasting. I have designed...
6
by: geronimo_me | last post by:
Hi, I am trying to run an Excel macro from an Access module, however when I run the code the macro runs but then I get an error in Access. The error is: Run-time error "440", Automation error. ...
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...
0
by: Bodmonkey | last post by:
Hi Experts, I'm both very new to Python and to VBA, so my question may well be a simple one but i'm tearing my hair out Basically i get a different excel files produced in any number after...
2
by: Senthil | last post by:
Hi All I need to create an Excel report and create a command button and have to run a macro on the click event that will print all the pages in the Excel workbook. I am able to create the report...
7
by: Holger Fitschen | last post by:
Hi to all, I want to use the Excel solver in a VB.Net project. The macro Sub Makro1Solver() Application.Run "Solver.xla!Auto_Open" SolverReset Worksheets(1).Select...
7
by: NeverLift | last post by:
This is probably answered elsewhere, but I've searched the Web and VBA for Excel manual, find no answers. I have a VBA-coded macro in an Excel workbook that is to open another existing workbook --...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...

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.