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

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,215,020
Messages
6,122,712
Members
449,093
Latest member
Mnur

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