Link to home
Start Free TrialLog in
Avatar of Kevin
KevinFlag for United States of America

asked on

Open an Excel file using "Send To" in File Exporer and passing along file name

I have an Excel 2019 spreadsheet macro that has some VBA in it.  Ideally what I would like is

  1. for a user to right-click a file in Windows Explorer (Windows 10) and select "Send to" and have the Spreadsheet available from the "Send to" menu.  Then, when the spreadsheet opens, it gets the name of the file and Autoruns using that file name in the VBA code
  2. Or, if the spreadsheet is opened without the "Send to" method, it will not autorun

Is this possible, and if so, please help...
ASKER CERTIFIED SOLUTION
Avatar of Alptekin Keskin
Alptekin Keskin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Fabrice Lambert
Fabrice Lambert
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Kevin

ASKER

Thank you both!