+ Reply to Thread
Results 1 to 4 of 4

on open, write to text file?

  1. #1
    Registered User
    Join Date
    02-21-2008
    Posts
    11

    on open, write to text file?

    hey all.

    I want to script, that whenever this excel file is opened, it adds:

    the date, and the number 1. eg

    02/04/2008 - 1

    i want to it add this every time, to c:\openlog.txt

    is this possible?

    cheers

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    Yes, it's possible. Add this code on 'ThisWorkbook'.
    For example, right click on below tab with sheet name, choose view code and, in the left window (if not visible press Ctrl + R), double click on 'ThisWorkbook' and in the right window paste this code:
    Please Login or Register  to view this content.
    Regards,
    Antonio

  3. #3
    Registered User
    Join Date
    02-21-2008
    Posts
    11
    love you work!! thanks!!

  4. #4
    Registered User
    Join Date
    04-07-2008
    Posts
    1
    Newby here... Looking for some useful tips.

    This info looks interesting. Is there a way to output the computer name of the computer that opened the file?


    Thanks

+ 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