+ Reply to Thread
Results 1 to 2 of 2

Thread: Display date of last run macro on switchboard

  1. #1
    Registered User
    Join Date
    05-11-2010
    Location
    A far away land
    MS-Off Ver
    Excel 2003
    Posts
    38

    Question Display date of last run macro on switchboard

    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

  2. #2
    Forum Guru davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2007
    Posts
    1,879

    Re: Display date of last run macro on switchboard

    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0