Hyperlink Filepath with Spaces

natekris8183

Board Regular
Joined
Mar 12, 2013
Messages
156
I've read several posts regarding creating HTMLBody string statements for hyperlinks in the code for Outlook e-mail generation from Excel; however, most indicate spaces cannot be permitted. The goal is that in the e-mail generating, I am creating hyperlink to a filepath so that the individual can just simply open the document from the e-mail. Unfortunately the destination folder HAS spaces in it. I cannot change that fact though because it is on a shared public drive, so for those that are going to say just renamed the folder, that is not an option. So does anyone have any thoughts on the correct field notation in Word to allow me TO include a space in the filepath name?

Unfortuantely I can't post the code because it interprets the hyperlink so I'll just say the filepath name is "C:\Documents and Settings\..." where the spaces are.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,214,920
Messages
6,122,276
Members
449,075
Latest member
staticfluids

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