+ Reply to Thread
Results 1 to 4 of 4

Macro on cell change, manual or sort

  1. #1
    Registered User
    Join Date
    12-12-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    24

    Macro on cell change, manual or sort

    Bonjour,
    I think I am going somewhere with this. The goal of this project is to create a Command Line Repository where I will store different Unix and SQL commands for easy fetch and copy.

    When I fill any (subset at the moment) of column B, a "Copy" button is automaticaly placed in the column C and when hit put the content of the adjacent cell (column B) into Windows clipboard. That, so far, is working.

    What I want now is in two parts.

    First, when I sort the column B the macro is NOT executed which screw the whole project. I want to be able to sort column B and still have the macro executed to put the "Copy" button where it should be?

    Second, how or where should I place my code for it to be active on any sheet of the Workbook?

    I have attached the current file I am working on.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Macro on cell change, manual or sort

    Maybe without Buttons

    like this you can sort Column B without influence


    Please Login or Register  to view this content.
    Kind regards
    Leo

  3. #3
    Registered User
    Join Date
    12-12-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Macro on cell change, manual or sort

    Ok, let say I like the idea. What if I select more than one cell. So far it is working with a selection on one cell but leads to error if I select more than one.

  4. #4
    Registered User
    Join Date
    12-12-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Macro on cell change, manual or sort

    Ok, found a partial soluton
    Please Login or Register  to view this content.
    But is it possible to send to clipboard the content of a selection of more than one cell?

+ 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. [SOLVED] Manual sort macro
    By smpita in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-04-2014, 09:27 PM
  2. Workbook Macro to change calculations from manual to automatic?
    By Phil_Packer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-15-2013, 12:39 AM
  3. [SOLVED] How to sort wthout doing the final manual manipulations?
    By plumberef in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-14-2013, 07:43 AM
  4. Run Macro on cell change from streaming data (not manual user input)
    By Test123Test in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-20-2012, 12:58 PM
  5. Reorder Rows (Manual Sort), Copy, Insert, Delete Row
    By Orada in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-17-2011, 03:32 PM
  6. Private Sub for manual change to range of cells
    By ogygiasylph in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-23-2011, 10:16 AM
  7. VBA- Can I change Header after a manual pagebreak?
    By GregJG in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2007, 02:45 PM
  8. Replies: 2
    Last Post: 09-29-2005, 11:05 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