+ Reply to Thread
Results 1 to 4 of 4

Cut and Paste to new sheet based on Cell Value.

  1. #1
    Registered User
    Join Date
    09-15-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel Mac 2011
    Posts
    10

    Cut and Paste to new sheet based on Cell Value.

    Hi,

    I have a userform which populates a worksheet "Incident". This includes 11 columns that include a Date, First Name, Surname, Grade, Teacher, Incident, Location, Teacher Notified, Parent Notified, Time stamp.

    I need a macro that copies the row in "Incident" and then creates a new sheet based on the value of the Grade column, then pastes that row into the new sheet as well as the row headings.

    If the sheet already exists then the data can be just pasted into that correct sheet. once the data is pasted the data entry from "Incident" can be deleted.

    Thanks in advance!
    Last edited by Jacko2stars; 09-14-2013 at 01:40 AM.

  2. #2
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Cut and Paste to new sheet based on Cell Value.

    Hi Jack,

    try this - it should do what you're looking for.
    Please Login or Register  to view this content.
    Please click the * below if this helps
    Please click the * below if this helps

  3. #3
    Registered User
    Join Date
    09-15-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel Mac 2011
    Posts
    10

    Re: Cut and Paste to new sheet based on Cell Value.

    Thanks Jasper.

    When i exit the userform the macro runs, if no data is entered it copies the headers into a new sheet named grade and removes them from "incident" sheet.

    Is there a way of changing the macro so that it doesn't do this?
    Last edited by Jacko2stars; 09-14-2013 at 07:48 AM.

  4. #4
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: Cut and Paste to new sheet based on Cell Value.

    You need to insert a bit of code that checks if there's actually an entry in the userform and if not, do not run the macro.
    Can you upload a sample workbook?

    Thanks

+ 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] Macro to cut and paste to different sheet based on a certain cell information
    By mmcgrail in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-04-2013, 05:39 PM
  2. paste from 1 sheet into another based on a reference cell
    By howardgrigg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-03-2007, 05:41 AM
  3. based on Cell/Column content ,cut one sheet's values and paste it in other sheet?
    By mindpeace in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-25-2006, 08:33 AM
  4. based on Cell/Column content ,cut one sheet's values and paste it in other sheet?
    By mindpeace in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-24-2006, 10:33 AM
  5. copy and paste to another sheet based in cell color
    By nat3ten in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-08-2005, 07: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