+ Reply to Thread
Results 1 to 2 of 2

Copy Contents of an ActiveX TextBox with a Macro

  1. #1
    Registered User
    Join Date
    09-23-2013
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    7

    Copy Contents of an ActiveX TextBox with a Macro

    Hi,

    I have a little issue with an ActiveX Textbox that gets filled with a macro as such:

    Please Login or Register  to view this content.
    (It takes the content from various strings and cell contents, but it is fundamentally the same as above.)


    Then what I need is another macro that I can fix to a "Copy" button that goes into this textbox, selects all, and copies it.

    Here's what I have so far:

    Please Login or Register  to view this content.
    The above is able to select the contents, but I'm not sure what the next step is. Ideally I want it to copy all that is selected to Clipboard. This could be done just by Ctrl+V after, but if I'm doing this alot its one less thing (and one less thing that could go wrong).

    For the life of me thought I cannot figure out how to get this all to copy?

    Anyone know? I'm thinking I'm missing something silly.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Copy Contents of an ActiveX TextBox with a Macro

    Please Login or Register  to view this content.
    Use a DataObject to transfer text to clipboard
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Copy text from activeX textbox and paste into excel
    By montecarlo2079 in forum Word Formatting & General
    Replies: 29
    Last Post: 07-25-2013, 03:48 PM
  2. Macro to copy textbox data to a duplicate textbox in another worksheet
    By nitram lowm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-02-2013, 06:10 AM
  3. ActiveX Textbox copy to cell & carraige returns cause garbage character
    By jbarbara11 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-08-2011, 09:04 AM
  4. Copy Textbox Contents
    By simonhall in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-31-2007, 08:39 PM
  5. Copy contents of textBox to Cell in Excel
    By Shashi Bhosale in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-15-2006, 08:25 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1