LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default Copy code from ThisWorkbook using VBA?

I have a master report template that I use, which loops through a series of
sites that I do reporting for and creates range/valued site level reports -
nice and small and easy to work with.

The requestor for this report wanted to know who is accessing these reports.
Right now, they are hosted on a Sharepoint site and statistics have not been
setup.

I have a simple routine that appends a log-file during the On Open event
that gives me the date, time, name of the file and user name.

However, this resides in the ThisWorkbook object and I don't know how to
programatically copy that code to each new workbook as they are created. I
need to get this code into each workbook so I can track who is using what
reports and when.

Grant it, I know that anyone who opens the workbook without macros enabled
won't be counted, but this is just for a rough baseline...

If any more information or snippets of code are required, let me know.

Thanks!
Ray
--
"Trying to make reports so easy... even a monkey could run ''em!"
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Turn off ThisWorkbook Code? [email protected] Excel Programming 3 April 12th 07 02:29 PM
Populate ThisWorkbook via Code Sean Excel Programming 13 January 14th 07 06:03 PM
How to use VBA to copy this code to "thisworkbook" objects of all opened workbooks ? Amolin[_2_] Excel Programming 5 June 3rd 05 08:34 AM
Deleting Code in 'ThisWorkbook' Ken Loomis Excel Programming 4 March 25th 05 01:36 PM
Importing Code into 'ThisWorkbook' Mark Excel Programming 3 April 16th 04 03:29 PM


All times are GMT +1. The time now is 04:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"