I have a database where I run a macro to print and email a report to a couple of people. I want to be able to display the most recent date the macro was last run on the switchboard. The switchboard was created with the manager and I prefer not to use code as I am not very proficient with code.
I tried adding a setvalue to the macro to set the value of a textbox on the switchboard. This works as long as the database is open but once the database is closed and reopened the box is empty, until the macro is run again. Any ideas on how to get the date to remain in the textbox once the database is reopened?
Thanks
You need to create a table to store the date. Then update the table with the current date/time whenever the macro is run.
Is your code running too slowly?
Does your workbook or database have a bunch of duplicate pieces of data?
Have a look at this article to learn the best ways to set up your projects.
It will save both time and effort in the long run!
Dave
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks