Schadenfreud
New Member
- Joined
- Jan 22, 2014
- Messages
- 29
I have a WinForm, which I'm calling via VBA's Shell command:
I made this module an Excel Add-in and added it as a button in the quick access toolbar. Now, the idea is for the WinForm.exe and the Excel.xla to always be in the same directory (go hand in hand). I want to make a relative path for the .exe which will be the path to the folder where the .xla is + the string "TemplateFunctions.exe" in the end.
Does anyone have any idea how/if I can achieve this?
Code:
Sub Button1_Click()
Shell "C:\\TemplateFuncitons.exe " + ActiveWorkbook.FullName, 1
End Sub
Does anyone have any idea how/if I can achieve this?