Sub TestCliptable()
'Paste data from the clipboard into a table
Dim db As dao.Database
Dim rs As dao.Recordset
Set db = CurrentDb
'Change tblData to the name of the table where the data will be stored
Set rs = db.OpenRecordset("tblData", dbOpenDynaset)
'Uncomment one of the lines below
'for either adding a new record or editing an existing record
' rs.AddNew 'Insert New Record uncomment this line
' rs.Edit 'Edit an existing record to include new data uncomment this line
'Change rs!Contents to the name of the field where the data
'will be pasted
rs!Contents = PasteFromClip
rs.Update
rs.Close
db.Close
Set rs = Nothing
Set db = Nothing
End Sub