Skip to content

Commit

Permalink
Fixed formatting issues
Browse files Browse the repository at this point in the history
Found in Issues list in GitHub
  • Loading branch information
Linda Caputo committed Nov 8, 2018
1 parent e3b2e22 commit 4c2e007
Show file tree
Hide file tree
Showing 252 changed files with 585 additions and 697 deletions.
15 changes: 9 additions & 6 deletions Language/Reference/User-Interface-Help/addin-object.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: AddIn Object
title: AddIn object
keywords: vbob6.chm102256
f1_keywords:
- vbob6.chm102256
Expand All @@ -11,17 +11,20 @@ ms.date: 06/08/2017
---


# AddIn Object
# AddIn object



The **AddIn** object provides information about an add-in to other add-ins.
The **AddIn** object provides information about an add-in to other add-ins.

## Syntax

_object_**.AddIn**

## Remarks

An **AddIn** object is created for every add-in that appears in the Add-In Manger.
An **AddIn** object is created for every add-in that appears in the Add-In Manager.

## See also

- [Object library reference for Office (members, properties, methods)](https://docs.microsoft.com/office/vba/api/overview/library-reference/reference-object-library-reference-for-office)
- [Office client development reference](https://docs.microsoft.com/office/client-developer/office-client-development)

17 changes: 8 additions & 9 deletions Language/Reference/User-Interface-Help/dictionary-object.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Dictionary Object
title: Dictionary object
keywords: vblr6.chm2181922
f1_keywords:
- vblr6.chm2181922
Expand All @@ -11,11 +11,8 @@ ms.date: 06/08/2017
---


# Dictionary Object
# Dictionary object



**Description**
Object that stores data key, item pairs.

## Syntax
Expand All @@ -24,10 +21,9 @@ Object that stores data key, item pairs.

## Remarks

A **Dictionary** object is the equivalent of a PERL associative array. Items, which can be any form of data, are stored in the array. Each item is associated with a unique key. The key is used to retrieve an individual item and is usually a integer or a string, but can be anything except an array.
The following code illustrates how to create a **Dictionary** object:

A **Dictionary** object is the equivalent of a PERL associative array. Items, which can be any form of data, are stored in the array. Each item is associated with a unique key. The key is used to retrieve an individual item and is usually an integer or a string, but can be anything except an array.

The following code illustrates how to create a **Dictionary** object:

```vb
Dim d 'Create a variable
Expand All @@ -36,7 +32,10 @@ d.Add "a", "Athens" 'Add some keys and items
d.Add "b", "Belgrade"
d.Add "c", "Cairo"
...

```

## See also

- [Dictionary object (Windows Scripting)](https://docs.microsoft.com/previous-versions/windows/internet-explorer/ie-developer/windows-scripting/x4k5wbx4(v%3dvs.84))


14 changes: 6 additions & 8 deletions Language/Reference/User-Interface-Help/file-object.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: File Object
title: File object
keywords: vblr6.chm2181925
f1_keywords:
- vblr6.chm2181925
Expand All @@ -11,18 +11,13 @@ ms.date: 06/08/2017
---


# File Object
# File object



**Description**
Provides access to all the properties of a file.

## Remarks

The following code illustrates how to obtain a **File** object and how to view one of its properties.


The following code illustrates how to obtain a **File** object and how to view one of its properties.

```vb
Sub ShowFileInfo(filespec)
Expand All @@ -34,4 +29,7 @@ Sub ShowFileInfo(filespec)
End Sub
```

## See also

- [Object library reference for Office (members, properties, methods)](https://docs.microsoft.com/office/vba/api/overview/library-reference/reference-object-library-reference-for-office)
- [Office client development reference](https://docs.microsoft.com/office/client-developer/office-client-development)
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ ms.date: 09/17/2018
- [Objects](../objects-visual-basic-for-applications.md)
- [Properties](../properties-visual-basic-for-applications.md)

## See also

- [Object library reference for Office (members, properties, methods)](https://docs.microsoft.com/office/vba/api/overview/library-reference/reference-object-library-reference-for-office)
- [Office client development reference](https://docs.microsoft.com/office/client-developer/office-client-development)
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ In this step, you create the file that adds the custom components to the ribbon.
1. In a text editor, add the following XML markup.

```xml
<customUI xmlns="https://schemas.microsoft.com/office/2006/01/customui">
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab id="CustomTab" label="My Tab">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,80 +1,83 @@
---
title: Customize the Office Fluent Ribbon by Using an Open XML Formats File
title: Customize the Office Fluent Ribbon by using an Open XML formats file
ms.prod: office
ms.assetid: 562d79a2-c1eb-126a-1567-ddd0253f5972
ms.date: 06/08/2017
---


# Customize the Office Fluent Ribbon by Using an Open XML Formats File
# Customize the Office Fluent Ribbon by using an Open XML formats file

The ribbon component of the Microsoft Office Fluent user interface gives users a flexible way to work with Office applications. Ribbon Extensibility (RibbonX) uses a simple, text-based, declarative XML markup to create and customize the ribbon.

The code example in this topic shows how to add custom components to the ribbon for a single document, as opposed to adding application-level customizations. In the following steps, you add a custom tab, a custom group, and a custom button to the existing ribbon in Word. You also implement a callback procedure for the button that inserts a company name into the document.

1. Create the customization file in any text editor and save the file with the name **customUI.xml**.
1. Create the customization file in any text editor and save the file with the name **customUI.xml**.

2. Add the following XML markup to the file and then close and save the file.

```xml
<customUI xmlns="https://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab id="CustomTab" label="My Tab">
<group id="SampleGroup" label="Sample Group">
<button id="Button" label="Insert Company Name" size="large" onAction="ThisDocument.InsertCompanyName" />
</group >
</tab>
</tabs>
</ribbon>
</customUI>
```xml
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab id="CustomTab" label="My Tab">
<group id="SampleGroup" label="Sample Group">
<button id="Button" label="Insert Company Name" size="large" onAction="ThisDocument.InsertCompanyName" />
</group >
</tab>
</tabs>
</ribbon>
</customUI>
```

```

3. Create a folder on your desktop named **customUI** and copy the XML customization file to the folder.
3. Create a folder on your desktop named **customUI** and copy the XML customization file to the folder.

4. Validate the XML markup with a custom schema.

**Note** This step is optional.
5. Create a document in Word 2007 and save it with the name **RibbonSample.docm**.

6. Open the Visual Basic Editor, add the following procedure to the **ThisDocument** code module, and then close and save the document.

```vb
Sub InsertCompanyName(ByVal control As IRibbonControl)
' Inserts the specified text at the beginning of a range or selection.
Dim MyText As String
Dim MyRange As Object
Set MyRange = ActiveDocument.Range
MyText = "Microsoft Corporation"
' Range Example: Inserts text at the beginning
' of the active document
MyRange.InsertBefore (MyText)
' Selection Example:
'Selection.InsertBefore (MyText)
End Sub
> [!NOTE]
> This step is optional.
5. Create a document in Word and save it with the name **RibbonSample.docm**.

6. Open the Visual Basic Editor, add the following procedure to the **ThisDocument** code module, and then close and save the document.

```vb
Sub InsertCompanyName(ByVal control As IRibbonControl)
' Inserts the specified text at the beginning of a range or selection.
Dim MyText As String
Dim MyRange As Object
Set MyRange = ActiveDocument.Range
MyText = "Microsoft Corporation"
' Range Example: Inserts text at the beginning
' of the active document
MyRange.InsertBefore (MyText)
' Selection Example:
'Selection.InsertBefore (MyText)
End Sub

```
```

7. Add a **.zip** extension to the document file name and then double-click it to open the file.
7. Add a **.zip** extension to the document file name and then double-click it to open the file.

8. Add the customization file to the container by dragging the customUI folder from the desktop to the .zip file.

9. Extract the **.rels** file to your desktop. A **_rels** folder that contains the .rels file is copied to your desktop.
9. Extract the **.rels** file to your desktop. A **_rels** folder that contains the .rels file is copied to your desktop.

10. Open the **.rels** file and add the following line between the last **Relationship** tag and the **Relationships** tag. This creates a relationship between the document file and the customization file.

`<Relationship Id="someID" Type="https://schemas.microsoft.com/office/2006/relationships/ui/extensibility" Target="customUI/customUI.xml" />`
10. Open the **.rels** file and add the following line between the last **Relationship** tag and the **Relationships** tag. This creates a relationship between the document file and the customization file.

```xml
<Relationship Id="someID" Type="http://schemas.microsoft.com/office/2006/relationships/ui/extensibility" Target="customUI/customUI.xml" />
```

11. Close and save the file.

12. Add the _rels folder back to the container file by dragging it from the desktop, overwriting the existing file.

13. Rename the document file to its original name by removing the .zip extension.

14. Open the document and notice that the ribbon now displays the **My Tab** tab.
14. Open the document and notice that the ribbon now displays the **My Tab** tab.

15. Click the tab and notice the **Sample Group** group with a button control.
15. Click the tab and notice the **Sample Group** group with a button control.

16. Click the button to insert the company name into the document.

Expand Down
Loading

0 comments on commit 4c2e007

Please sign in to comment.