Inserting Hyperlinks into selected area in powerpoint

Eldhose Peter 6 Reputation points
2022-11-24T09:13:41.517+00:00

Is it possible to insert Hyperlinks in selected area in Powerpoint through office js add-in ?
I have tried using the setSelectedDataAsync(data, options, callback).
But i am only able to insert Plain Text through this method.

Office.context.document.setSelectedDataAsync('Hello World!',
function (asyncResult) {
if (asyncResult.status === Office.AsyncResultStatus.Failed) {
console.log(asyncResult.error.message);
}
});

Is there any way to insert a HyperLink in the selected area ?

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
911 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,652 questions
Office Mac
Office Mac
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Mac: A family of Apple personal computers that run the macOS operating system.
477 questions
PowerPoint Management
PowerPoint Management
PowerPoint: A family of Microsoft presentation graphics products that offer tools for creating presentations and adding graphic effects like multimedia objects and special effects with text.Management: The act or process of organizing, handling, directing or controlling something.
223 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. John Korchok 5,121 Reputation points
    2022-11-24T17:29:04.863+00:00

    PowerPoint hyperlinks can be attached to a shape or to text in a shape. You cannot assign a hyperlink to a blank area.

    They are no Office.js experts here, you'll get better answers from the office-js tag in Stack Overflow.

    0 comments No comments