Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-10-2020, 08:11 AM
MikeK MikeK is offline Identify what process opened a workbook. Windows 7 64bit Identify what process opened a workbook. Office 2013
Novice
Identify what process opened a workbook.
 
Join Date: Aug 2020
Posts: 11
MikeK is on a distinguished road
Default Identify what process opened a workbook.

I currently have a VB routine that interrogates a workbook each night and determines whether to send out some email notifications. When it's done its job it closes the workbook.



The workbook is also opened on an ad-hoc basis for query and/or update.

I would like to dispense with the VB routine that runs each night via the task manager and open the workbook itself directly from the task manager and then run the logic for the notifications from within that workbook.

For this to be successful I would need to identify whether the workbook was opened by the task manager or an end user so that the appropriate macros are called.

Any ideas as to whether I'm able to tell what process opened the workbook?

Can I pass any parameters to the workbook when opening it from the task manager, and if so how?
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I copy a workbook to another workbook and keep the formatting within the new workbook excelforsue Excel 3 09-15-2020 03:37 AM
Sharing a Workbook that contains array formula link to other workbook Ahmad.rage22@gmail.com Excel 0 03-12-2018 10:15 PM
data entered in one workbook should be updated in other relevant workbook based on the date vedha Excel 0 04-24-2015 08:45 PM
Identify what process opened a workbook. #REF! error when opening a workbook that contain a refference to another workbook tanababa Excel 2 06-07-2012 03:11 PM
Range(Cell1,Cell2) Error on another workbook controlling some other workbook? tinfanide Excel Programming 1 02-09-2012 04:08 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:47 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft