PDF Hyperlink issue

hcabs99

Active Member
Joined
May 9, 2006
Messages
254
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?
 

Some videos you may like

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Watch MrExcel Video

Forum statistics

Threads
1,127,748
Messages
5,626,633
Members
416,195
Latest member
tonmcg

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
Top