Determining how a workbook was opened

Oseitutuakrasi

New Member
Joined
Jun 7, 2023
Messages
38
Office Version
  1. 365
Platform
  1. Windows
Dear Friends,

Is it possible to write a VBA code that will tell me how a workbook was opened (i.e. from Windows Explorer or from another workbook)?
For example, I can open WorkbookA from the Windows Explorer. If I have WorkbookB, I can also open WorkbookA from within WorkbookB
Is there a way to determine which method I used.

Thank you All
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
I would venture to say no, not possible. In Access it is possible to know if users don't use a shortcut on their desktop but that would only tell you if they didn't use the prescribed shortcut. I tested and it seems that the Excel guys didn't attend that vba meeting 😖 , so even that seems to be unavailable in Excel.
 
Upvote 0
I would venture to say no, not possible. In Access it is possible to know if users don't use a shortcut on their desktop but that would only tell you if they didn't use the prescribed shortcut. I tested and it seems that the Excel guys didn't attend that vba meeting 😖 , so even that seems to be unavailable in Excel.
Thank you Micron. Wouldn't waste my time then.

Regards.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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
Back
Top