Skip to content
Eren Gaygusuz
Go back

Embedding OneDrive Office Files in Moodle

Word, Excel, and PowerPoint files stored in OneDrive can be shown inside Moodle with embed code. This archived walkthrough reflects the 2016 OneDrive and Moodle interfaces, so the exact labels may now be different.

Make sure learners can open the shared source files before adding them to a course. Test each embedded item using an account with learner-level permissions.

Office documents flowing through embed code into a Moodle page

Table of contents

Open Table of contents

Preparing the Files

Upload example Word, Excel, and PowerPoint files to OneDrive. The previous OneDrive upload workflow applies to each file type.

Word, Excel, and PowerPoint files uploaded to OneDrive

Embedding a Word Document

Open the Word document, choose File, then open the sharing area and select the embed option. Create the code, adjust the available dimensions and interaction settings, then copy it.

Opening a Word document in OneDrive Opening Word document sharing embed option Creating Word document embed code Configuring Word document embed dimensions and interaction

Create a Moodle Page resource, switch its content editor to HTML mode, paste the code, and save it.

Creating Moodle Page resource for Word document Pasting Word embed code into Moodle Word document embedded in Moodle

If the result is too small, adjust the iframe’s width and height values in HTML mode, as in the preceding PDF example.

<iframe src="..." width="1000" height="1210"></iframe>

Embedding an Excel Workbook

Open the Excel file, use File > Share > Embed, review the available display and interaction settings, then copy the generated code.

Opening Excel workbook in OneDrive Opening Excel embed option Configuring Excel embed settings

Paste the code into a new Moodle Page resource in HTML mode, then save and display it.

Adding Excel embed code to Moodle Page Saving Moodle page with Excel embed Excel workbook embedded in Moodle

Embedding a PowerPoint Presentation

Open the PowerPoint presentation in OneDrive. Use the three-dot menu to choose Embed, configure the options, and copy the code.

Opening PowerPoint presentation embed option Configuring and copying PowerPoint embed code

Paste it into a new Moodle Page resource in HTML mode, then save and display it.

Adding PowerPoint embed code to Moodle Page Saving Moodle page with PowerPoint embed PowerPoint presentation embedded in Moodle

Summary

The same embed-code pattern works for OneDrive Office files: create the code, paste it in Moodle’s HTML mode, and tune the viewer dimensions. Keep sharing permissions intentional, especially when interaction or editing controls are enabled.


Share this post:

Comments


Previous Post
Uploading Moodle Content with FileZilla
Next Post
Embedding OneDrive PDF Files in Moodle