Excel to log name, date and time somebody accessed a report on a network drive....

LittlegmoonBH

New Member
Joined
May 2, 2019
Messages
15
Hi,

I’m looking for help logging in Excel, using VBA to log in ahidden sheet the username, date and time logged in and logged out of reports inshared locations.

I know a solution exists because I’ve used one before, but Ican’t for the life of me remember how I did it…

Does anybody have anything they could share? This isbasically for me to monitor how frequently reports produced are used, and bywho.

Thanks in advance for your help!

 

Some videos you may like

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

LittlegmoonBH

New Member
Joined
May 2, 2019
Messages
15
Hi Rijnsent,

Thanks for the response! I’ve tried this and it doesn’t work. It workedonce, but it’s not re-writing the 1st row over and over.
 

Rijnsent

Well-known Member
Joined
Oct 17, 2005
Messages
1,300
Office Version
  1. 365
Platform
  1. Windows
Hi LittlegmoonBH,
that macro runs every time the user opens the file. The only catch: the data is written to the log-sheet, but if the user doesn't save the file, the new line is not there anymore the next time you open the file. Plus: the user has to allow macros to log it, if they block macros it won't work.
Koen
 

Watch MrExcel Video

Forum statistics

Threads
1,123,380
Messages
5,601,297
Members
414,440
Latest member
Kim0204

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top