Sonoma permissions for Excel to open locally-stored pdf files as hyperlinks

Is there any way to grant Excel permission to open local PDF files (as hyperlinks) in MacOS?

Right now, I have an Excel file with a summary of invoices, and besides other information, I keep hyperlinks to the original invoice PDF files that are stored locally on my computer.

The problem is that each time I try to click the hyperlink, I get a series of system messages (Alert "cannot open the specified file"/ click OK / try again / Window "Grant File Access", where I read Additional permissions are required to access the following files "...", Microsoft Excel needs access to the file named "....pdf". Select the item to grant access/ press Select, select the file and press "Grant Access" / alert "Opening File. Some files can contain viruses or otherwise be harmful to your computer"... "Would you like to open this file?"/ press OK/ only then I'm able to see the hyperlinked pdf) that make this access cumbersome. Furthermore, even if I allow everything, after I shut down and try to open the same Excel and follow the same hyperlinks, it asks for permission again.

I already gave Settings/Privacy & Security/Full Disk Access to Excel, but in Settings/Privacy & Security/Files and Folders, Microsoft Excel appears with grey font (as in a disabled item).

Has anyone found any way to circumvent this?

MacBook Air 13″, macOS 14.2

Posted on Feb 7, 2024 7:43 AM

Reply
3 replies

Feb 7, 2024 9:36 AM in response to asp2018

Maybe try to write some macros, custom functions, or similar and target an AppleScript task, as described here: https://learn.microsoft.com/en-us/office/vba/office-mac/applescripttask


I was able to get far enough to confirm that this AppleScript will do what you want:


on linkopenhandler(paramString)
	
	open location paramString
	
end linkopenhandler


But I don't know much about VBA or creating a clickable link in Excel. I think it is possible though.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Sonoma permissions for Excel to open locally-stored pdf files as hyperlinks

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.