+ Reply to Thread
Results 1 to 4 of 4

Checkboxes to copy different lines to clipboard

  1. #1
    Registered User
    Join Date
    07-09-2014
    Location
    Lisbon
    MS-Off Ver
    Microsoft Office 365 ProPlus Version 1708 (build 8431.2153)
    Posts
    62

    Question Checkboxes to copy different lines to clipboard

    Hi all,

    So, I'm sure this will be quite simple for most of you but it seems to be nightmare to me! I've read a few threads and tried several different approaches but keep failing :-/

    I want excel to do what I think to be very simple: Copy different lines to clipboard depending on the checkboxes active. They're only four!
    The thing is, I know how to copy X text if X checkbox is active and concatenate it with the next statement in a cell - I could then copy this cell. But I would like the clipboard text to respect line breaks and to not have quotation marks. I'm afraid this can be only archive using VBA, right?

    So, in the example attached file, if checkboxes 1 and 3 are active, the following text should be available in the clipboard to paste in any other application:

    Copy this text if checkbox 1 is active. This can be a 50 characters long phrase.
    Copy this text if checkbox 3 is active. This can be a 80 characters long phrase.

    Exactly like this. Is this possible? If VBA is not needed I could go with that too.

    Many, may thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,651

    Re: Checkboxes to copy different lines to clipboard

    Try something like this.

    Move\size each checkbox so that the top-left corner of its outline (when you right-click on a checkbox) is within the cell that is one cell to the left of the text it represents.

    You could assign this macro to a button if you like.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    07-09-2014
    Location
    Lisbon
    MS-Off Ver
    Microsoft Office 365 ProPlus Version 1708 (build 8431.2153)
    Posts
    62

    Re: Checkboxes to copy different lines to clipboard

    Hi AlphaFrog,

    Sorry for getting back so late!
    Thank you for replying and for trying to help.

    Unfortunately I wont be able to position the text or chechboxes that way.
    Is there any other way to get the job done? Something that translates to (i'm sorry for the dumbness) If checkbox 1 and 2 are checked Then copy C3 & (paragraph) C4.

    I'll have a button to action the code.

    Thanks

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,651

    Re: Checkboxes to copy different lines to clipboard

    Change to suit the names of the checkboxes and their associated cells with text.

    Please Login or Register  to view this content.

+ 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 individual lines from cell with broken lines by char(10)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-12-2015, 05:40 AM
  2. Show data > copy data to clipboard > hide data... clipboard data is gone??
    By DaveSev in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-26-2015, 10:16 AM
  3. Select series(lines) in a line graph by adding userform with checkboxes on a chart
    By aab_489 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2014, 12:25 PM
  4. macro to autofilter and copy first 15 lines visible lines in columns D:E
    By Juraj123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-20-2013, 03:40 AM
  5. Replies: 8
    Last Post: 06-10-2012, 10:12 AM
  6. How to copy to clipboard?
    By jp001 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-17-2011, 01:23 AM
  7. Copy one cell to an other but colors do not copy. While not using clipboard to copy.
    By chuckchuckit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2010, 03:08 AM

Tags for this Thread

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