Sub topic 2
Sharing a workbook with the Share button
This chapter assumes you can already save a workbook to OneDrive or SharePoint, which the previous chapter covered. It also assumes you have basic Excel skills. The Share button only works on a workbook stored in the cloud, so confirm that first.
What the Share button does
The Share button sits at the top right of the Excel ribbon. It does two jobs. It grants specific people access to the file, and it sends them a link to it. The file stays in one place, and everyone opens that same copy. This differs from emailing an attachment, where each person edits a separate copy and you have to merge the results later.
Sharing with specific people
- Open the workbook from OneDrive or SharePoint.
- Select Share at the top right of the window.
- In the To box, type a name or email address. Excel suggests matches from your organization's directory and your contacts.
- Choose the permission from the pencil icon: Can edit or Can view.
- Optionally, add a message. The recipient sees it in the invitation.
- Select Send.
Each recipient gets an email with a link. Anyone you named opens the workbook in Excel for the web, or in the desktop app if they choose.
Edit and view permissions
| Permission | What the person can do |
|---|---|
| Can edit | Change cells, add sheets, and use comments. |
| Can view | Read the workbook and open it, but not save changes to it. |
Choose Can view when someone only needs to read the data. You can change a person's permission later through the Manage access option in the Share pane.
Checking and changing who has access
Select Share again to open the Share pane. It lists everyone who has access. From there you can:
- Change a person from edit to view.
- Remove a person's access.
- Copy a link to send through chat or another channel.
Removing access stops the person from opening the file with that link. It does not delete copies they already downloaded.
Common errors
- The Share button is missing or asks you to upload. The file is on your local disk. Save it to OneDrive or SharePoint first.
- A recipient says the link does not work. Often the person signed in with a different account than the one you invited. Invite the address they actually use.
- You cannot add someone outside your organization. Your administrator may block external sharing. Ask them, or use a different location.
- The person can open the file but cannot edit. Check that you picked Can edit, not Can view. Also check whether the file or sheet is protected.
Seeing sharing state from VBA
You can check the cloud-related state of the file in a macro. This macro reads the AutoSaveOn property, which is true when the workbook is saved in the cloud and set to save automatically.
Sub ReportAutoSaveState()
If ActiveWorkbook.AutoSaveOn Then
MsgBox "AutoSave is on. Edits are saved to the cloud automatically."
Else
MsgBox "AutoSave is off. Turn it on to co-author in real time."
End If
End SubExercise
A colleague receives your invitation, opens the workbook, and sees it as read-only. Give two likely causes and say where you would check each.
Show answer
First, you may have chosen Can view instead of Can edit. Open the Share pane and check their permission under Manage access. Second, the file or a sheet may be protected, or they signed in with a different account than the one invited. Check the protection settings on the Review tab and confirm the email address you invited.
Exercise
You emailed a workbook as an attachment to three people, and each returned an edited copy. Name one problem that sharing through the Share button avoids.
Show answer
With the Share button, everyone works in the same file in the cloud, so you do not have to merge three separate copies by hand. Changes are not lost or duplicated.