+ Reply to Thread
Results 1 to 4 of 4

Record date of opening a workbook, together with user name

  1. #1
    Registered User
    Join Date
    08-29-2022
    Location
    Scotland
    MS-Off Ver
    v. 2207 (Build 15427.20210)
    Posts
    1

    Post Record date of opening a workbook, together with user name

    Hi! This is first my post here!

    I am looking to create a template workbook for user acceptance testing (UAT) where I wish to have autopopulated on separate tables of the sheet (please see attached),
    1. the name of the first person (Tester A) opening the sheet and the date+time it was opened by them.
    2. the names and date+time of each person opening (Testers and Users) the sheet at any point of time.

    Is this possible? How does one go about it?

    P.S.: I have no idea about Excel programming as it is rarely, if at all, part of my work/student life, but I shall try my best. I'd appreciate any easier way to go about this that does not involve programming.

    Cheers!

    APPEND: I found this code in the forum here, but I can't get it to work due to the following error: (Error 9: Subscript Out Of Range)

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by lost_astronaut; 08-29-2022 at 06:10 AM. Reason: Append

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    MS365 V.2406
    Posts
    2,308

    Re: Record date of opening a workbook, together with user name

    Possibly...
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    05-03-2022
    Location
    Halifax,Canada
    MS-Off Ver
    365
    Posts
    326

    Re: Record date of opening a workbook, together with user name

    Hello lost_astronaut

    One thing that you have to take into account is that the user should be forced to open workbook with macro's enabled.
    For if the user opens workbook without macro's enabled you will not get a macro recording you login information.

    ONE WAY TO ACHIEVE THIS ...
    - on closing have macro hide and lock all sheets except for a "splash sheet"
    - the "splash sheet " in big bold print tells them to open book with macros enabled
    - the "on open" macro trigger , if macros are enabled, macro is triggered automatically to hide splash sheet and unhide / unprotect all other sheets.
    - if user does not enable macros on open only sees splash sheet ELSE , if enabled sees all sheets but flash sheet


    Code to "forced to open workbook with macro's enabled"
    Please Login or Register  to view this content.

    if this has helped please consider clicking "add reputation" , thx
    Last edited by nimrod1313; 08-29-2022 at 11:16 AM.

  4. #4
    Valued Forum Contributor
    Join Date
    05-03-2022
    Location
    Halifax,Canada
    MS-Off Ver
    365
    Posts
    326

    Re: Record date of opening a workbook, together with user name

    Hello lost_astronaut:
    I have a couple questions for you .

    the names and date+time of each person opening
    QUESTION 1
    You have two types of people opening the workbook ; Testers and users.
    My question is what is it about a person that determines which group they belong to .
    More specifically how would the macro , that enters their name/date into the table, know which group they belong to ?

    FOR EXAMPLE:
    If the macro that logs them into the table is triggered by opening the workbook , how would the macro know if they are a user or a tester ?
    Do you want the macro to popup a msgbox that asks which they are a tester or user ?

    QUESTION 2
    Why do you need 2 tables when the "UAT template" table will only have a single record... and that single record is always going to be the first record in the "Documents Open by" table ?
    When you want to know who the first tester is (aka Tester A) can't you just refer to first row of "Documents Opened by" table ?
    Last edited by nimrod1313; 08-30-2022 at 10:00 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Log/Record every user of a workbook
    By rakotonirinas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-16-2017, 05:41 AM
  2. Opening a workbook already open by another user
    By KASM in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-24-2010, 06:47 AM
  3. Only opening a workbook by User Name or Machine Name???
    By Simon Lloyd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-20-2006, 11:52 AM
  4. [SOLVED] Macro to record user name and date/time
    By Maddoktor in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-18-2005, 07:00 AM
  5. [SOLVED] Macro to record user name and date/time
    By Maddoktor in forum Excel General
    Replies: 0
    Last Post: 12-08-2005, 06:10 PM
  6. [SOLVED] Opening workbook in user-defined folder
    By pdberger in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 09:05 AM
  7. Opening a user selected workbook
    By David Hall in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-06-2005, 04:06 PM

Tags for this Thread

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