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

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Watch MrExcel Video

Forum statistics

Threads
1,127,334
Messages
5,624,082
Members
416,010
Latest member
NJT

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