Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2004
    Posts
    7

    Unanswered: copying to clipboard

    I want be able click (a textbox or label) something and have a set of words copied to the clipboard.

  2. #2
    Join Date
    Feb 2004
    Location
    CT,USA
    Posts
    250
    http://www.vba-programmer.com/VB_Cod..._Using_API.txt

    If you plan to use the text in Access later I'd recommend using a variable to store the data instead-- much easier.

  3. #3
    Join Date
    Nov 2003
    Posts
    1,487
    Here are some clipboard functions for you. API's are used to deal to and from the clipboard.


    Attached Files Attached Files

  4. #4
    Join Date
    Mar 2004
    Location
    www.scirocco.ca
    Posts
    346
    You can access the Clipboard directly through Visual Basic or VBA using the Clipboard object.

    Here are the main methods:

    Clipboard.Clear
    This clears the contents of the clipboard. Use this method before you write to the clipboard.

    Clipboard.SetText "String"
    This sets the text memory into the clipboard. i.e.

    Clipboard.SetText textbox1.Text

    Clipboard.GetText
    This returns the current text value from the Clipboard.
    http://www.scirocco.ca/images/banner...occobanner.gif

    Download for FREE the ADO/DAO Data Controls that makes life EASIER developing database applications in: VB, FoxPro, Access, VC++, .NET etc... Navigate, Add New, Delete, Update, Search, Undo and Save your changes. Supports Disconnected Recordsets and Transactions!

    Or try our Ask An Expert service to answer any of your questions!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •