PDF Hyperlink issue

hcabs99

Active Member
Joined
May 9, 2006
Messages
257
HI All

Have an issue with when i create PDF's via VBA when the excel cell contains a hyperlink which points to a sharepoint location.
If i click the cell directly in the excel file it links perfectly to the document in the sharepoint directory , but when i create the PDF, it changes the link

So the excel file address is https://companyname.com/:p/r/sites
But when i view the created PDF it changes it to file:///C:/:p:/r/sites

If i link to a normal www. site, no issues at all and the link works fine in the PDF.

I've done a lot of searching for this and tweaking of the VBA , but i dont seem to be able to correct this

I have the creation set in the vba as

xSht.ExportAsFixedFormat _

Type:=xlTypePDF, _

FileName:=xFolder, _

Quality:=xlQualityStandard, _

includedocproperties:=True, _

ignoreprintareas:=False, _

openafterpublish:=False

Any suggestions please?
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

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