Saturday, October 31, 2020

Restore a previous version of a file in onedrive

With version history, you can see and restore older versions of your files stored in OneDrive or SharePoint. Version history works with all file types, including Microsoft 365 files, PDFs, CAD files, photos, videos, and more. If you need to, you may be able to restore deleted OneDrive files or restore deleted SharePoint items from the recycle bin.

Tip: You can also View previous versions of Office files in Office apps.

  1. Sign in to OneDrive with your personal Microsoft account or your work or school account. 

  2.  Select the file that you want to restore to an earlier version (you can only restore one file at a time), right-click, then select Version history.

    Note: In Classic view, select the document, then at the top, select More > Version History.

  3. In the Version History pane, do one of the following:

    If you're signed in to OneDrive or SharePoint with a work or school account (such as a Microsoft 365 account), select the ellipses (...) next to the version of the document that you want to restore, and then click Restore.

Version History pane

In Classic view or previous versions of SharePoint Server, select the arrow next to the version of the document that you want to restore, and then click Restore.

Select 'Restore' from the drop-down menu for a selected document version

Use Version history in File Explorer

If you have the OneDrive sync app installed on your PC, right-click the file that you want to restore to an earlier version in File Explorer and select Version history.  Then select the ellipses (...) next to the version you want and click Restore.

File Explorer menu including the Version history option.

The document version you selected becomes the current version. The previous current version becomes the previous version in the list.

Notes: 

  • If you sign in with a personal Microsoft account, you can retrieve the last 25 versions. If you sign in with a work or school account, the number of versions will depend on your library configuration.

  • If you're using OneDrive as part of SharePoint Server, your administrator may have turned off document versioning. For more information about SharePoint versioning settings (which also apply to OneDrive for work or school) see Enable and configure versioning for a list or library or How does versioning work in a list or library?

  • If you're signed in to OneDrive with a Microsoft account, items in the recycle bin are automatically deleted 30 days after they're put there. If your recycle bin is full, the oldest items will be automatically deleted after three days. If you're signed in with a work or school account, items in the recycle bin are automatically deleted after 93 days, unless the administrator has changed the setting. See more information about how long deleted items are kept for work or school accounts.

Learn how to Find lost or missing files in OneDrive or View historical versions of Office files.

Need more help?

Online

Get online help
See more support pages for OneDrive and OneDrive for work or school.
For the OneDrive mobile app, see Troubleshoot OneDrive mobile app problems.

OneDrive Admins can also view the OneDrive Tech Community, Help for OneDrive for Admins.

Microsoft virtual support agent icon

Contact Support
If you still need help, contact support through your browser or shake your mobile device while you're in the OneDrive app.

OneDrive Admins can contact Microsoft 365 for business support.

Office 365 community forums

Tips
Letting us know your location may help us resolve your issue more quickly.

All fixed? If you contacted us and OneDrive starts working again, please let us know by replying to the email we sent you.

Learn more about sharepoint online

Insert a choice group

A choice group is a control that is used to present a set of mutually exclusive choices to users. By default, a choice group contains two choice sections, one of which appears to the user as the default choice on the form.

In this article

When to use a choice group

The user experience

Compatibility considerations

Insert a choice group

Layout tips

When to use a choice group

Use a choice group when you want to:

  • Give your users the option to choose between two or more sections on a form.

  • Design a form template based on an existing XML Schema that contains an xsd: choice element. In this case, a choice group lets you accommodate that schema element in your form template so that users can work with it.

Choice groups contain two or more choice sections. By default, one of these sections appears on the form, and users can choose to remove it or replace it with a different section. For example, on a purchase request form, you can have a section for requesting a new desktop computer appear by default, but allow users to remove the section entirely or replace it with a section for requesting a laptop computer.

Choice group on form with shortcut menu visible

The choice sections inside the choice group contain the controls that users interact with when they fill out the form. Choice sections are always contained within choice groups. Thus, if you try to add a choice section by itself to your form template, Microsoft Office InfoPath automatically creates a choice group in which to contain it.

Related controls

InfoPath includes other controls that are similar to choice groups but that serve different purposes. To decide which of these controls works best on your form template, refer to the following list:

Section    Sections are similar to the choice sections in a choice group, in that you use them to present users with a related set of controls. However, sections are used purely for organizational purposes — users cannot remove or replace them when filling out a form, as they can with choice sections.

Optional section    When you add a choice group to your form template, the default section always appears when a user first opens a form that is based on your form template. Optional sections, on the other hand, are hidden by default. Users can choose whether to include an optional section on the form. For example, on the purchase request form mentioned earlier, some users may want to include comments about the computer that they plan to order. You can insert an optional section on the form template and add a rich text box labeled "Notes" inside that optional section. Users can then add the notes section when and if they want it by clicking instructional text on the form.

Repeating section    Like repeating choice groups, repeating sections allow users to add more than one section to their form, depending on their needs. Use a repeating section on your form template when your goal is to allow your users to insert, but not replace, multiple instances of a section.

Repeating choice group    Repeating choice groups are just like choice groups, except that users can insert more than one of them on their form. For example, on the purchase request form mentioned earlier, users can choose to request a desktop computer or a laptop computer. However, in some cases, a user might want to request both types of computers or multiple computers of each type. If a repeating choice group is used on the form, the user can choose to fill out the section that contains desktop request information. Then the user can insert a second instance of the choice group in order to fill out the section that contains laptop request information.

Top of Page

The user experience

In both appearance and behavior, choice groups resemble sections and other layout-related controls. The key differences are that users can replace the default section inside a choice group with an alternative section or delete the choice group entirely.

When users move their cursor over the default choice section, a small purple button appears in the upper-left corner of the section. When users click this button, a shortcut menu shows commands for removing or replacing the default section.

Shortcut menu for choice group

Tip: With a choice group, users can remove or replace the default section, but they can't insert multiple instances of it on the form. If you want users to be able to insert additional sections on their form, you should use a repeating choice group instead of a choice group. From the user's perspective, the experiences are similar. However, in addition to seeing shortcut menu commands for removing or replacing the default section, the user also sees commands for inserting multiple instances of the choice group.

Top of Page

Compatibility considerations

When you design a form template in InfoPath, you can choose to design a browser-compatible form template. When you design a browser-compatible form template, choice groups and choice sections are unavailable in the Controls task pane because they cannot be displayed in a Web browser.

Top of Page

Insert a choice group

The procedure for inserting a choice group on a form template differs slightly depending on whether you are designing a new, blank form template or basing the design of your form template on a database or other external data source.

The following illustration shows how a choice group looks when it is selected in design mode.

A choice group selected in design mode

Controls can be bound or unbound. When a control is bound, it is connected to a field or group in the data source so that data entered into the control is saved in the underlying form (.xml) file. When a control is unbound, it is not connected to a field or group, and data entered into the control is not saved. When you select or move your pointer over a control, text and a binding icon appear in the upper-right corner of the control. The text indicates the group or field to which the control is bound in the data source. The icon indicates whether the control is correctly bound to that group or field. When the binding is correct, a green icon appears. If there's something wrong with the binding, you'll see a blue or red icon instead.

The data source for the form template consists of fields and groups that appear in a hierarchical view in the Data Source task pane. Choice sections are always bound to groups. Each control in a choice section is bound to a field that is part of the choice section's group. In the following example, the Desktop computer choice section on the form template is bound to the desktop group in the Data Source task pane.

Relationship between choice section on form template and corresponding group in data source

Insert a choice group on a new, blank form template

When you design a new, blank form template, the Automatically create data source check box in the Controls task pane is selected by default. This enables InfoPath to automatically create fields and groups in the data source as you add controls to the form template. These fields and groups are represented by folder and file icons in the Data Source task pane.

As you insert a choice group, InfoPath creates groups that are bound to the choice sections inside that choice group. In addition, InfoPath creates a special kind of group to visually indicate the relationship between the choice group on the form template and the data source. This type of group includes the word (choice) next to its label in the data source.

  1. On the form template, place the cursor where you want to insert the control.

  2. If the Controls task pane is not visible, click More Controls on the Insert menu, or press ALT+I, C.

  3. Under Insert controls, click Choice Group.

    A choice group containing two choice sections appears on the form template.

  4. To insert additional choice sections inside the choice group, place the cursor inside the choice group on the form template, and then click Choice Section in the Control task pane.

  5. To add controls to the choice sections inside the choice group, do one of the following:

    • To add controls to the default choice section, drag the controls that you want from the Controls task pane onto the choice section on your form template that is labeled Choice Section (default).

    • To add controls to the alternative choice sections, drag the controls that you want from the Controls task pane onto the choice section on your form template that is labeled Choice Section.

Insert a choice group on a form template that is based on an existing data source

If you base the design of your form template on an existing Extensible Markup Language (XML) file, database, or Web service, InfoPath derives the fields and groups in the Data Source task pane from that existing data source. For example, suppose that you base the design of your form template on an XML Schema, and that schema includes an xsd: choice element. In this circumstance, you can insert a choice group by dragging the appropriate group from the Data Source task pane onto your form template. If you instead use the Controls task pane to insert a choice group, InfoPath prompts you to bind the choice group to an existing group in the data source, as described in the following procedure:

  1. On the form template, place the cursor where you want to insert the control.

  2. If the Controls task pane is not visible, click More Controls on the Insert menu, or press ALT+I, C.

  3. Under Insert controls, click Choice Group.

  4. In the Choice Group Binding dialog box, select a group with the word (choice) next to its name, and then click OK.

  5. Add two or more choice sections to the choice group on the form template, and then bind them to the appropriate groups in the data source.

    Note: The groups that you choose must be part of the (choice) group that you selected in step 4.

  6. Add controls to each choice section, and then bind those controls to the appropriate fields in the data source.

    Note: The fields must be part of the groups that you selected in step 5. InfoPath uses the names of those fields for the control labels. If necessary, change the label text.

Top of Page

Layout tips

Use the following tips to help you refine the appearance, size, and other aspects of the choice groups and choice sections:

  • Because the shortcut menu button appears only when users move their pointer over a choice section, new users may not understand how to replace the default choice section. When you design your form template, consider adding a brief explanation above the choice section that tells users how to replace one choice section with another.

  • By default, the borders around the choice sections are not visible to users filling out the form. As a result, users see only the controls inside the sections when they open your form. To visually separate a choice section from the text and controls surrounding it, or to simply draw users' attention to the section, you can use the Borders and Shading dialog box to add borders or color to the choice sections within a choice group.

  • To change the size of several choice sections at once, select the choice sections whose size you want to change. On the Format menu, click Properties, and then make the necessary adjustments on the Size tab.

  • On occasion, the text inside the controls in a choice section and the labels to the left of those controls may appear to be slightly out of alignment. To quickly realign them, double-click the control, click Align on the Size tab, and then click Apply. To realign labels and controls that are in different cells in a layout table, right-click the cell that contains the label, click Table Properties on the shortcut menu, and then click Center under Vertical alignment on the Cell tab.

Top of Page

Add or remove borders for text boxes pictures and shapes

Here's how to add a line, pattern, or custom border to a text box, picture, and other objects in Word, PowerPoint, or Excel for Mac.

Note: If you didn't add the border to the shape, text box, picture, or other object in Mac Office, you can't change or remove the border for the object.

Try the "Sketched" outline

This is a subscriber-only feature This feature is available only to Microsoft 365 Subscribers for Windows desktop clients.

If you're using Microsoft 365 for Mac (version 16.28 or later), you can give a casual, hand-drawn look to shapes with the Sketched outline.

  1. Select an existing shape in your document, or draw a new one.

  2. With the shape selected, on the Shape Format tab, select Shape Outline > Sketched, and then select a line width. (The smaller the point size ("pt"), the thinner the line is.)

Add or remove a border for a shape or text box

  1. Select the shape or text box to which you want to add, change, or remove a border.

  2. Click Shape Format, and then click the arrow next to Shape Outline.

    Clcik the Shape Outline icon

  3. Do any of the following:

    To

    Do This

    Add or change the color of the border

    Either click the color that you want, or mix your own color by clicking More Outline Colors.

    Add or change the thickness of the border

    Point to Weight, and then choose the line weight that you want.

    Add or change the style of the border

    Point to Dashes, and then click the line style that you want.

    Remove the border from the shape or text box

    Click No Outline.

Add or remove a picture border

  1. Select the picture to which you want to add, change, or remove a border.

  2. Click Picture Format, and then click the arrow next to Picture Border.

    Click the Picture Outline icon

  3. Do any of the following:

    To

    Do This

    Add or change the color of the border

    Either click the color you want, or mix your own color by clicking More Outline Colors.

    Add or change the thickness of the border

    Point to Weight, and then choose the line weight you want.

    Add or change the style of the border

    Point to Dashes, and then click the line style you want.

    Remove the border from the picture

    Click No Outline.

See also

Add a page border

Add or change sources citations and bibliographies

Before you can add a citation, a works cited list, or a bibliography, you must add a source to your document. A works cited list is a list of sources, usually placed at the end of a document, that you referred to (or "cited") in the document. A works cited list is different from a bibliography, which is a list of sources that you consulted when you created the document. After you add sources, you can automatically generate a works cited list or a bibliography based on that source information. Each time that you create a new source, the source information is saved on your computer. You can use the Source Manager to find and reuse any source that you have created, even sources in other documents.

Citations are parenthetical references that are placed inline with the text. Citations are different from footnotes and endnotes, which are placed at the bottom of the page or end of the document. The source information stored in the Citations tool or Source Manager can be used to create citations, a works cited list, or a bibliography. However, you cannot use the information in the Citations tool or the Source Manager to create footnotes or endnotes.

For more information about templates for various styles, such as APA style, visit the Office for Mac templates web site.

To add a citation to your document, first add the source you used.

  1. On the References tab, click the arrow next to Bibliography Style, and click the style that you want to use for the citation and source. For example, social sciences documents usually use the MLA or APA styles for citations and sources.

    Choose a citation style

    On the References tab, the citation styles are highlighted.

  2. Click at the end of the sentence or phrase that you want to cite.

  3. On the References tab, click Insert Citation.

  4. In the Create Source dialog box, next to Type of Source, select the type of source you want to use (for example, a book section or a website).

    Create a citation source

  5. Enter the details for the source and click OK. The source is added as a citation at the place you selected in your document.

When you've completed these steps, the citation is added to the list of available citations. The next time you quote this reference, you don't have to type it all out again. You just add the citation (see the steps in the following procedure).

  1. If you need to edit a source, on the References tab, click Citations, and then click the settings button in the bottom right corner of the Citations pane.

  2. click Edit Source.

    Citations pane with Edit Source highlighted.

  3. Make the changes you want to the source, and then click OK.

    To manage your list of sources, click Citation Source Manager, and then add, edit, or delete sources in the list.

    Manage citation sources

  1. Click at the end of the sentence or phrase that you want to cite, and then on the References tab, click Citations.

    On the References tab, Citations is highlighted.

  2. In the Citations pane on the right, double-click the citation you want to add.

    Citations pane with list of citations.

In addition to the citation options that are included in Word by default, you can add custom citation styles, such as Vancouver, to create the bibliographies and reference materials you want.

The easiest approach is to download citation styles from sources such as BibWord.

By working with XML code you can also create your own custom styles. For details, see Create Custom Bibliography Styles.

A works cited list is a list of all works you referred to (or "cited") in your document, and is typically used when you cite sources using the MLA style. A works cited list differs from a bibliography, which is a list of all works that you consulted when your researched and wrote your document.

  1. In your document, click where you want the works cited list or bibliography to appear (usually at the very end of the document, following a page break).

  2. On the References tab, click the arrow next to Bibliography, and then click Bibliography or Works Cited.

You can change the style of all the citations contained in a document's works cited list or bibliography without manually editing the style of the citations themselves. For example, you can change the citations from the APA style to the MLA style.

  1. On the View menu, click Draft or Print Layout.

  2. On the References tab, click Citations.

  3. In the Citations pane, on the Citation style list, select a style.

    All references in your document's bibliography change to the new style.

Add, edit, or remove a source

To add a citation, a works cited list, or a bibliography to your document, you first add a list of the sources that you used.

The Source Manager lists every source ever entered on your computer so that you can reuse them in any other document. This is useful, for example, if you write research papers that use many of the same sources. If you open a document that includes citations, the sources for those citations appear under Current list. All the sources that you have cited, either in previous documents or in the current document, appear under Master list.

  1. On the Document Elements tab, under References, click Manage.

    Document Elements tab, References group

  2. At the bottom of the Citations tool, click Action pop-up menu , and then click Citation Source Manager.

  3. Click New.

  4. On the Type of Source pop-up menu, select a source type.

  5. Complete as many of the fields as you want. The required fields are marked with an asterisk (*). These fields provide the minimum information that you must have for a citation.

    Note: You can insert citations even when you do not have all the publishing details. If publishing details are omitted, citations are inserted as numbered placeholders. Then you can edit the sources later. You must enter all the required information for a source before you can create a bibliography.

  6. When you are finished, click OK.

    The source information that you entered appears in the Current list and Master list of the Source Manager.

  7. To add additional sources, repeat steps 3 through 6.

  8. Click Close.

    The source information that you entered appears in the Citations List in the Citations tool.

You can edit a source directly in the document or in the Citations tool. When you change the source, the changes apply to all instances of that citation throughout the document. However, if you make a manual change to a particular citation within the document, those changes apply only to that particular citation. Also, that particular citation is not updated or overridden when you update the citations and bibliography.

  1. On the Document Elements tab, under References, click Manage.

    Document Elements tab, References group

  2. In the Citations List, select the citation that you want to edit.

  3. At the bottom of the Citations tool, click Action pop-up menu , and then click Edit Source.

  4. Make the changes that you want, and then click OK.

    If you see a message that asks whether you want to save changes in both the Master list and the Current list, click No to change only the current document, or click Yes to apply changes to the source of the citation and use it in other documents.

Before you can remove a source from the Citations List, you must delete all related citations.

  1. In the document, delete all the citations associated with the source that you want to remove.

    Tip: You can use the search field to locate citations. In the search field Search Field in Word , enter part of the citation.

  2. On the Document Elements tab, under References, click Manage.

    Document Elements tab, References group

  3. At the bottom of the Citations tool, click Action pop-up menu , and then click Citation Source Manager.

  4. In the Current list, select the source that you want to remove, and then click Delete.

    The source now appears only in the Master list.

    Note: If the Delete button is unavailable, or if you see a check mark next to the source in the list, there is still at least one related citation in the document. Delete all remaining related citations in the document, and then try deleting the source again.

  5. Click Close.

    The source that you removed no longer appears in the Citations List.

Insert, edit, or delete a specific citation

You can insert citations from a list of sources and make changes to a specific citation,

  1. In your document, click where you want to insert the citation.

  2. On the Document Elements tab, under References, click Manage.

    Document Elements tab, References group

  3. In the Citations List, double-click the source that you want to cite.

    The citation appears in the document.

    Example of APA style citation

Use this option to make custom changes to a citation and keep the ability to update the citation automatically.

Note: The changes that you make by using this method apply only to this citation.

  1. Click anywhere between the parentheses of the citation. A frame appears around the citation.

    Frame around citation

  2. Click the arrow on the frame, and then click Edit this Citation.

    Citation options menu

  3. Add page numbers, or select the Author, Year, or Title check box to keep that information from showing in the citation.

If you want to change a specific citation manually, you can make the citation text static and edit the citation in any way that you want. After you make the text static, the citation will no longer update automatically. If you want to make changes later, you must make the changes manually.

  1. Click anywhere between the parentheses of the citation. A frame appears around the citation.

    Frame around citation

  2. Click the arrow on the frame, and then click Convert Citation to Static Text.

    Citation options menu

  3. In the document, make the changes to the citation.

  1. In the document, find the citation that you want to delete.

    Tip: You can use the search field to locate citations. In the search field Search Field in Word , enter part of the citation.

  2. Select the whole citation, including the parentheses, and then press DELETE .

Insert or edit a works cited list or a bibliography

A works cited list is a list of all works you referred to (or "cited") in your document, and is typically used when you cite sources using the MLA style. A works cited list differs from a bibliography, which is a list of all works that you consulted when your researched and wrote your document.

  1. In your document, click where you want the works cited list or bibliography to appear (usually at the very end of the document, following a page break).

  2. On the Document Elements tab, under References, click Bibliography, and then click Bibliography or Works Cited.

    Document Elements tab, References group

You can change the style of all the citations contained in a document's works cited list or bibliography without manually editing the style of the citations themselves. For example, you can change the citations from the APA style to the MLA style.

  1. On the View menu, click Draft or Print Layout.

  2. On the Document Elements tab, under References, click the Bibliography Style pop-up menu, and then click the style that you want to change the bibliography's references to.

    Document Elements tab, References group, Bibliography Style

    All references in your document's bibliography change to the new style.

If you add new sources to the document after you inserted the works cited list or bibliography, you can update the works cited list or bibliography to include the new sources.

  1. Click the works cited list or bibliography. A frame appears around it.

  2. Click the arrow on the frame, and then click Update Citations and Bibliography.

    Update or Convert Bibliography Menu

Word inserts a works cited list or a bibliography as a field. The field frame indicates that the works cited list or bibliography was created automatically from the sources in the document. The frame enables you to convert the field into static text and edit it as you would any other text.

Note: If you convert a works cited list or a bibliography to static text, you cannot use Word to automatically update it. Instead, you must delete the works cited list or bibliography and then insert a new one.

  1. Click the works cited list or bibliography. A frame appears around it.

  2. Click the arrow on the frame, and then click Convert Bibliography to Static Text.

    Update or Convert Bibliography Menu

See also

Add or change footnotes or endnotes

Edit a list view in sharepoint

There are many ways to edit a list view in a list. You can present data with different styles, subgroups, columns, sorts, and filters. Note that you need Contribute permission level or higher to edit a view.

Your browser does not support video.

Note: Does your screen look different than the examples here? Your administrator may have classic experience set on the list, or you're using an earlier version. If so, see Edit a list view in SharePoint Server.

  1. Open the list that you want to edit.

  2. Modify the list view by doing one or more of the following:

  • To add a column, select the header of any existing column, and from the dropdown menu, select Column Settings > Add a Column. (You can also select + Add column or + to the right of the last column name at the top of the list.)

  • In the Create a column pane, enter the column information, then select Save.

    The create a column panel
  • To sort a column, select the column header, and from the dropdown menu, your first two options will be the sort methods (such as A to Z or Descending). The options are based on the column type and will vary accordingly.

    From the column header menu in the List view, the Sort option selected in the modern SharePoint experience
  • To filter a column, select the Filter icon Filter icon . When the pane options, you'll see all the filter options for all columns that can be filtered. Select the checkbox or checkboxes accordingly.

    The Filter option selected in the List view in the modern SharePoint experience

    (You can also select the column header, and from the dropdown menu, select Filter by. When the pane opens, select the option or options you want to use to filter the column, then select Apply.)

  • To group items in the list together, select the column header, then from the dropdown menu, select Group by. (In the example below, items in the list are grouped by Event Coordinator.)

    From the column header menu in the List view, the Group by option enabled in the modern SharePoint experience
  • To modify column settings, select the column header, then from the dropdown menu, select Column settings, and then Edit.

Saving the list view

Once you have your view the way you like it, you can save it.

  1. From the top navigation, select All Items*.

  2. From the dropdown menu, select Save view as, then in the dialog box, enter the name you want to give this view.

  3. If you want the view to be shared publicly as well, check the Make this a public view box.

  4. Select Save.

You can change the default view to any public view for that list. But you cannot set a personal view as the default view. To delete a view that is the default view, you must first make another public view the default for that list. If Make this the default view is not displayed on the create or edit view pages, you do not have the permission to create a public view, or the view is a personal view.

Leave us a comment

Was this article helpful? If so, please let us know at the bottom of this page. If it wasn't helpful, let us know what was confusing or missing. We'll use your feedback to double-check the facts, add info, and update this article.