Question : Is there a way to access the Office clipboard using Visual Basic in Word?

Is there a way to access the Office clipboard using Visual Basic in Word?  

The reason I ask is because in my VB I copy something and then paste it.  Now I want to clear what I copied out of the clipboard and have whatever was in it before my VB started accessible to paste again (so my users can paste whatever they may have copied last).  I know Word has a built in Clipboard manager and I thought a good solution would be if I could access the commands related to it, I could probably delete the last copied clip.

A different solution would also be great.

Thanks.

Answer : Is there a way to access the Office clipboard using Visual Basic in Word?

doug, here's a ms link for you
WD98: Sample VB Code to Assign Clipboard Text to String Variable
http://support.microsoft.com/default.aspx?scid=kb;en-us;183644
its got this code:
Sub GetClipBoardText()
      Dim MyData As DataObject
      Set MyData = New DataObject
      Dim sClipText As String
      On Error GoTo NotText
      ' Get data from the clipboard.
      MyData.GetFromClipboard
      ' Assign clipboard contents to string variable.
      sClipText = MyData.GetText(1)
      MsgBox sClipText
NotText:
      If Err <> 0 Then
         MsgBox "Data on clipboard is not text."
      End If
   End Sub


which seems to work for me (this just reads but there could be more in the link, i didn't read that far
Random Solutions  
  •  When establishing an ADO connection to a database, is it necessary to have a file path that is free of blank spaces?
  •  The transaction log for database 'mydatabase' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases
  •  search method in VBA Access
  •  The report server is not responding. Verify that the report server is running and can be accessed from this computer.
  •  sql server  login
  •  Autofill Date Field in Access 2007
  •  Visual Basic Code - Excel - Merge multiple worksheets in an excel workbook into single worksheet
  •  migrating SQL databases to another server and get some weird error messages
  •  Your database or project contains a missing or broken reference to the file 'DSDBListVw2.dll' version 1.0.
  •  IIS7 won't parse classic ASP / VBScript
  •  
    programming4us programming4us