+ Reply to Thread
Results 1 to 6 of 6

Commandbutton to cut and paste highlighted row

  1. #1
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Commandbutton to cut and paste highlighted row

    Hi all,
    I have 3 sheets
    In sheet1 I have rows numbered from 1-19

    What I want to achieve:
    - Select row 3 by highlighting third cell in column1
    - Then press command button1 to transfer it to sheet2 and button2 to transfer row to sheet3.
    I have tried many methods but can not get it right.
    Some help please
    Thanks
    Kind regards
    Attached Files Attached Files

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Commandbutton to cut and paste highlighted row

    What do you mean by "Select row 3 by highlighting third cell in column 1"? You mean cell A3, but do you want to select A3 and press the command button 1 and 2 or you want to select A3 and then change the background color and then press the command button 1 and 2.

    Moreover will the command button 1 and 2 work for row3 only, i.e. do you want to transfer only row 3 to sheet2 and sheet3 every time?

    You need to clarify more.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: Commandbutton to cut and paste highlighted row

    Hi,
    e.g. in sheet1 I select A3 and press button1 . This will transfer entire row to sheet2 in the next empty row.
    & pressing button2 it will transfer it to sheet3 in similar way.
    There is no colour change.
    I have coloured sheets just to make look different.
    Thanks
    Kind regards

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Commandbutton to cut and paste highlighted row

    Maybe:

    button 1

    Please Login or Register  to view this content.
    button 2

    Please Login or Register  to view this content.
    combined:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    02-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    677

    Re: Commandbutton to cut and paste highlighted row

    Hi John H Davis.
    Really thanks for your help.
    It works great.
    Thanks again
    kind regards

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Commandbutton to cut and paste highlighted row

    You're welcome. Glad to help out and thanks for the feedback.

+ 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 Highlighted Cell And Paste
    By samdegg in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-28-2013, 06:23 PM
  2. Paste in the highlighted (help)
    By M_jordan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-09-2012, 12:16 PM
  3. Commandbutton in userform to execute code based on a previous commandbutton choice?
    By michaeljoeyeager in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-20-2012, 03:28 PM
  4. [SOLVED] Cut & Paste-highlighted
    By in forum Excel General
    Replies: 1
    Last Post: 02-07-2006, 07:30 PM
  5. Paste Using CommandButton
    By gtton in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-06-2005, 04:05 PM

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