| Name | Type | Description |
|---|---|---|
| x1 |
Double
|
|
| y1 |
Double
|
|
| x2 |
Double
|
|
| y2 |
Double
|
|
| ShiftState |
Long
|
|
| TimeOut |
Long
|
|
| Snap |
Boolean
|
|
| CursorShape |
Sub Test() Dim x1 As Double, y1 As Double, x2 As Double, y2 As Double Dim Shift As Long Dim b As Boolean Dim s As Shape Dim cr As Long, cg As Long, cb As Long b = ActiveDocument.GetUserArea(x1, y1, x2, y2, Shift, 10, False, cdrCursorEyeDrop) If Not b Then Set s = ActiveDocument.ActiveLayer.CreateRectangle(x1, y1, x2, y2) If (Shift And 1) <> 0 Then ' Shift pressed s.Rectangle.SetRoundness 50 End If End If End Sub