VBA Needed - Report which VBA code already run which not in same

Myproblem

Board Regular
Joined
May 24, 2010
Messages
198
hello VBA funs,

I have many VBA codes in the same workbook - monthly report :nya: (dont ask why), and in the same workbook and in the couple hours of working in it I do not know which VBA I already run, which not.
I need VBA which will show, in separate sheet (in the same workbook) or in the new workbook which VBA codes alredy run regarding same workbook and which not.

thx
any tips
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
I think he's trying to point you to methods of how to log the vba runs, which is applicable to your inquiry.
You would need to call the logging mechanism from each module/function to create the log - which could ultimately show you what was run on which file when and by whome.
There is no native tracing of this in VBA to back-track what has already been run.
 
Upvote 0
I think he's trying to point you to methods of how to log the vba runs, which is applicable to your inquiry.
You would need to call the logging mechanism from each module/function to create the log - which could ultimately show you what was run on which file when and by whome.
There is no native tracing of this in VBA to back-track what has already been run.

After searching for adequate properties i figure out almost the same - there is no simpe, unique tracing about VBA already been run.

Maybe i am wrong, or i figure out wrong but there is no propertie for VBA code? Am I wrong?

But i still do not know any example if VBA code to call logging mechanism for each module, or subroutine in specific (only one) workbook

any idea
 
Upvote 0
Maybe i am wrong, or i figure out wrong but there is no propertie for VBA code? Am I wrong?

There are - one would need to add a reference to "Microsoft Visual Basic for Applications for Extensibility" from Tools/References to access the properties (.LastRun is not one of them).
 
Upvote 0
There are - one would need to add a reference to "Microsoft Visual Basic for Applications for Extensibility" from Tools/References to access the properties (.LastRun is not one of them).


In Excel 2007 I have "Microsoft Visual Basic for Applications for Extensibility 5.3", it should be that, isnt it?
 
Upvote 0
Yes, that's the reference.
I'm not fluent in the object; but believe hat this is primarily used for add-ins relative to manipulatine the VBA Code in IDE. It's a little deeper than just running a logger and, imho, has good potential for really hosing one's project.
 
Upvote 0
i figure out how to solve this problem,
i will put name of the vba code before end sub, and make stamp time and date on new worksheet.

thx tweedle
 
Upvote 0
Yes, that's the idea;
whether using the logger pointed to by VBACO or some other function.

You would need to call the logging mechanism from each module/function to create the log - which could ultimately show you what was run on which file when and by whome.
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,834
Members
452,947
Latest member
Gerry_F

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top