B
Bill S.
Hi,
I'm getting the following message when trying to use the selection property
in the Reviewing Pane in Word 2002:
Run-time error '4605': This method or property is not available because the
current selection is editing the reviewing pane.
All I'm doing is letting the user select from a list and trying to insert
the value such as this and I get the error when trying to execute the
'Selection.TypeText Text...' line:
'*****************
' We will go through all of the values in our current list and check
' each one to see if it has been selected. If so, we will echo the
' associated text back into the document.
For iArrValue = 0 To lstSelection.ListCount - 1
If lstSelection.Selected(iArrValue) = True Then
Selection.TypeText Text:=arrResponse(iArrValue)
End If
Next
'*****************
If I record a macro in my main document or in the Reviewing Pane, just
typing in text, the macro command is no different, using the selection
property. It records fine and I can play it in my main document but not in
the Reviewing Pane, as I'll get the error listed above.
I can also manually type in the Reviewing Pane so it appears to be accessible.
Either I am missing something or the selection property is not able to be
used within the Reviewing Pane.
Any ideas?
Bill
I'm getting the following message when trying to use the selection property
in the Reviewing Pane in Word 2002:
Run-time error '4605': This method or property is not available because the
current selection is editing the reviewing pane.
All I'm doing is letting the user select from a list and trying to insert
the value such as this and I get the error when trying to execute the
'Selection.TypeText Text...' line:
'*****************
' We will go through all of the values in our current list and check
' each one to see if it has been selected. If so, we will echo the
' associated text back into the document.
For iArrValue = 0 To lstSelection.ListCount - 1
If lstSelection.Selected(iArrValue) = True Then
Selection.TypeText Text:=arrResponse(iArrValue)
End If
Next
'*****************
If I record a macro in my main document or in the Reviewing Pane, just
typing in text, the macro command is no different, using the selection
property. It records fine and I can play it in my main document but not in
the Reviewing Pane, as I'll get the error listed above.
I can also manually type in the Reviewing Pane so it appears to be accessible.
Either I am missing something or the selection property is not able to be
used within the Reviewing Pane.
Any ideas?
Bill