+ Reply to Thread
Results 1 to 10 of 10

Auto Cut Rows To Another Sheet When Categorised?

  1. #1
    Registered User
    Join Date
    04-26-2016
    Location
    England
    MS-Off Ver
    MS Office 2010
    Posts
    7

    Auto Cut Rows To Another Sheet When Categorised?

    Hi,

    I am wondering if someone could help me with adding in a Macro that will take a row and cut and paste it into a relevant sheet, depending on the "Catagory" Column?


    For example if "Category" = Manufacture, Paste into "Manu Report"..
    "Category" = Clinical, Paste into "Clinical Report"..

    Hopefully I have explained this correctly, any help would be greatly appreciated.

    Jordan
    Attached Files Attached Files

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Auto Cut Rows To Another Sheet When Categorised?

    See the file attached. I have a made little changes to the workbook.

    Code used -

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Cheers!
    Deep Dave

  3. #3
    Forum Contributor
    Join Date
    09-23-2007
    Location
    Melbourne, Australia
    Posts
    176

    Re: Auto Cut Rows To Another Sheet When Categorised?

    I had a go at this too.. See attached.

    paste_rows.xlsm

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    09-23-2007
    Location
    Melbourne, Australia
    Posts
    176

    Re: Auto Cut Rows To Another Sheet When Categorised?

    woops, mistake in my code.. It's not yestno it's boolean yesno.. see attached


    paste_rows.xlsm

  5. #5
    Registered User
    Join Date
    04-26-2016
    Location
    England
    MS-Off Ver
    MS Office 2010
    Posts
    7

    Re: Auto Cut Rows To Another Sheet When Categorised?

    Hi Dave

    Thanks for the file, This works Great!

    I just wondered if it is possible to "Cut"/Remove the line from "Sheet1" Data, once the category has been selected?

    Thanks Again
    Jordan

  6. #6
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Auto Cut Rows To Another Sheet When Categorised?

    Try this code -

    Please Login or Register  to view this content.
    Last edited by NeedForExcel; 04-26-2016 at 11:28 PM.

  7. #7
    Registered User
    Join Date
    04-26-2016
    Location
    England
    MS-Off Ver
    MS Office 2010
    Posts
    7

    Re: Auto Cut Rows To Another Sheet When Categorised?

    Hi Dave,

    I have just tried the code you sent, but it did not work correctly?

    I appreciate your help with this , would it be an issue to set me the code in a new workbook? No worries if this is too much,

    Thanks again
    Jordan

  8. #8
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Auto Cut Rows To Another Sheet When Categorised?

    Works fine for me.

    See the file attached.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    04-26-2016
    Location
    England
    MS-Off Ver
    MS Office 2010
    Posts
    7

    Re: Auto Cut Rows To Another Sheet When Categorised?

    Thanks for the quick reply, Why does the "Run" button remove once the macro is Run..? Could this be kept in the data sheet?


    Jordan

  10. #10
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Auto Cut Rows To Another Sheet When Categorised?

    Actually the run button isn't removed, it just gets resized.

    Do this -

    Right Click On the run button > Format Shapes > Size & Properties > Don't Move Or Size With Cells (Depending on the version of excel, these steps might vary a bit)

+ 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. Replies: 4
    Last Post: 10-05-2015, 07:25 AM
  2. Replies: 3
    Last Post: 07-28-2014, 05:45 PM
  3. auto grow rows in sheet 2 when new data is added in sheet 1
    By sasssv in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-17-2013, 09:38 AM
  4. Categorised expenses list to pie chart
    By W3bbo in forum Excel General
    Replies: 1
    Last Post: 02-08-2011, 07:54 AM
  5. VBA code to auto add rows to Sheet
    By Andrew_P in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-28-2009, 11:49 PM
  6. Categorised data into different sheets
    By Jentan in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-28-2006, 02:15 PM
  7. Categorised / Stacked column chart
    By Barguast in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-18-2005, 12:50 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