Total Visual SourceBook

Total Visual SourceBook CD and Printed Manual

Microsoft Access/ Office 2016, 2013, 2010, and 2007 Version
is Shipping!

New features in Total Visual SourceBook for Access, Office 2007 and VB6

Supports Access/Office 2016, 2013, 2010 and 2007, and Visual Basic 6.0!

Separate version for Access/Office 2003, 2002, and 2000.

Separate version for:
Access 97/95


View all FMS products for Microsoft AccessAll Our Microsoft Access Products

SourceBook Info:

Why SourceBook?

 

"The code is exactly how I would like to write code and the algorithms used are very efficient and well-documented."

Van T. Dinh, Microsoft MVP

 

 

 

Microsoft Access, Office/VBA, VB6 Modules royalty-free source code libraryMicrosoft Access Modules royalty-free source code libraryMicrosoft Access VBA and VB6 Module Library Free trial of Total Visual SourceBook for Microsoft Access, Office, VB6 and VBA

Module: Clipboard in Category Windows : Clipboard Operations from Total Visual SourceBook

Working with the Windows Clipboard in VB6 and VBA with 32 and 64 bit Windows API calls.

Use this code to get the contents of the clipboard, copy text to the clipboard, or clear the contents of the clipboard.

Procedure List

Procedure Name

Type

Description

(Declarations) Declarations Declarations and private variables for the modClipboard module
ClearClipboardData Procedure Clears the clipboard
GetClipboardData Procedure Get the text contents of the clipboard
SetClipboardData Procedure Writes the supplied string to the clipboard

Example Code for Using Module: Clipboard

' Example of the modClipboard module
'
' To use this example:
' 1. Create a new form.
' 2. Create a command button called cmdTest
' 3. Paste the entire contents of this module into the new form's module.

Private Sub cmdTest_Click()
  ' This procedure shows how to use the modClipboard class.
  Dim strTest As String

  ' Put a string of text onto the clipboard
  Debug.Print "Putting text on the clipboard"
  SetClipboardData "This is a test"

  ' Get the text
  strTest = GetClipboardData()
  Debug.Print "Clipboard is: " & strTest

  ' Clear the clipboard
  Debug.Print "Emptying the clipboard..."
  ClearClipboardData
  Debug.Print "Clipboard is: " & GetClipboardData()

End Sub

Microsoft Access Module LibraryOverview of Total Visual SourceBook

The source code in Total Visual SourceBook includes modules and classes for Microsoft Access, Visual Basic 6 (VB6), and Visual Basic for Applications (VBA) developers. Easily add this professionally written, tested, and documented royalty-free code into your applications to simplify your application development efforts.

Additional Resources