I have a macro-enabled worksheet that resides in a shared location on my PC. This sheet, used to collect some data from employees resides in a shared location in network. It has a feature where users are sent reminder mails when they fail to fill data in time. In the mail content I like to add the local network path to my excel file.
I accomplish this by adding the code
“You can access the tool from the location " & ThisWorkbook.FullName
On sending mails using this code I get the path to this folder as C:\Users\XYZ\Hello.xlsm
I would like to send the network path with IP address so that users can directly copy the path into run and access the file.
Interesting thing is that if I send the mail from another system other than mine by accessing the file form my shared folder, the mail is sent with the network path. Can anyone help on this?
I use Excel 2007
I partially solved my problem. I used a function to find the computer name and manipulated
ThisWorkbook.FullnameDemerit: Cannot find the correct path if the file is in a folder within a shared folder.