I'm unable to search the internet or retrieve specific videos, including those from YouTube, due to the limitations of my current capabilities. However, I can provide you with a general approach similar to what you might find in such a video.
If you want to place a file on your desktop and get a notification when someone opens it, one approach is using a script or a macro in a document. Here's how you could do it with an Excel file, using VBA to send you an email when the file is opened:
Sending an Email When an Excel File is Opened
-
Create or Open an Excel File:
Open an existing Excel file or create a new one.
-
Enable the Developer Tab:
- Go to
File -> Options.
- Click on
Customize Ribbon.
- Check the
Developer checkbox.
- Click
OK.
-
Open VBA Editor:
- Go to the
Developer tab in Excel.
- Click on
Visual Basic to open the VBA editor.
-
Insert VBA Code:
- In the VBA editor, locate
ThisWorkbook under the VBAProject for your file and double-click on it to open the code window.
- Copy and paste the following VBA code into the code window:
Private Sub Workbook_Open()
Dim olApp As Object
Dim olMail As Object
On Error Resume Next
' Create Outlook object
Set olApp = CreateObject("Outlook.Application")
Set olMail = olApp.CreateItem(0)
' Configure the email details
With olMail
.To = "youremail@example.com"
.Subject = "Excel File Opened"
.Body = "The file has been opened."
.Send
End With
' Cleanup
Set olMail = Nothing
Set olApp = Nothing
End Sub
Steps:
-
Modify Email Details:
- Replace
"youremail@example.com" with your actual email address.
-
Save the File:
- Save the workbook with a
.xlsm extension (Excel Macro-Enabled Workbook).
-
Place the File on Desktop:
- Move the saved file to the desktop.
-
Test the Functionality:
- Close the Excel file, then reopen it to check if the email notification is sent.
Important Points:
- Using Macros: Ensure your VBA macros are enabled. Excel might disable them by default for security reasons.
- Outlook Security: Modern Outlook versions prompt users to allow programmatic access to send emails, which might require user interaction.
- Legal and Ethical Concerns: Always ensure the use of such scripts complies with laws and workplace policies. Inform the user if the file is being monitored.
- Security Risks: Files with macros can be misused and are often flagged by antivirus software.
If you’re monitoring file access for legitimate reasons, ensure transparency and get necessary permissions from users who may access the file. If you need more advanced or secure tracking, consider using dedicated software solutions designed for this purpose.