Skip to content

Commit

Permalink
Fixed indentation on code samples.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinRH authored Oct 3, 2019
1 parent 406d19c commit 34ead59
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Office-Mac/GrantAccessToMultipleFiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ Existing macro file commands prompt the user for permission to access a file if
Use the **GrantAccessToMultipleFiles** command to input an array of file paths and prompt the user for permission to access them.

```vb
Boolean GrantAccessToMultipleFiles(fileArray)
Boolean GrantAccessToMultipleFiles(fileArray)
```

|**Parameter**|**Description**|
|Parameter|Description|
|:-----|:-----|
|*fileArray*|An array of POSIX file paths|

The command returns whether the user granted permission or not.

|**Return value**|**Description**|
|Return value|Description|
|:-----|:-----|
|True|The user grants permission to the files.|
|False|The user denies permission to the files.|
Expand All @@ -40,19 +40,19 @@ The command returns whether the user granted permission or not.
## Example

```vb
Sub requestFileAccess()
Sub requestFileAccess()

'Declare Variables 
    Dim fileAccessGranted As Boolean
    Dim filePermissionCandidates
'Create an array with file paths for the permissions that are needed. 
    filePermissionCandidates = Array("/Users//Desktop/test1.txt", "/Users//Desktop/test2.txt")
Dim fileAccessGranted As Boolean
Dim filePermissionCandidates

'Create an array with file paths for the permissions that are needed. 
filePermissionCandidates = Array("/Users//Desktop/test1.txt", "/Users//Desktop/test2.txt")

'Request access from user. 
    fileAccessGranted = GrantAccessToMultipleFiles(filePermissionCandidates)
fileAccessGranted = GrantAccessToMultipleFiles(filePermissionCandidates)
'Returns true if access is granted; otherwise, false.
End Sub
End Sub
```

[!include[Support and feedback](~/includes/feedback-boilerplate.md)]
[!include[Support and feedback](~/includes/feedback-boilerplate.md)]

0 comments on commit 34ead59

Please sign in to comment.