+ Reply to Thread
Results 1 to 2 of 2

Count # of times a worksheet is printed

Hybrid View

  1. #1
    Registered User
    Join Date
    10-23-2008
    Location
    Denver
    Posts
    31

    Count # of times a worksheet is printed

    Is there a way in excel '07 to count the # of times a worksheet is printed?

    Cheers,
    C

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    I don't have Excel 2007 but in the "This Workbook code, you can put this code
    Private Sub Workbook_BeforePrint(Cancel As Boolean)
    ActiveSheet.Range("A1").Value = ActiveSheet.Range("A1").Value + 1
    
    End Sub
    This increments the value in A1 (change that to whatever cell you want to track in) by 1 for each time you print. However, if set to print multiple copies, this code only counts it once. :-/
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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.6.0 RC 1