+ Reply to Thread
Results 1 to 7 of 7

Selection box to copy cells to another Sheet in next available row

  1. #1
    Registered User
    Join Date
    01-04-2012
    Location
    Derby, England
    MS-Off Ver
    2010, 2013 2016 Pro
    Posts
    85

    Selection box to copy cells to another Sheet in next available row

    Hi All,

    I am trying to create a document that takes the effort out of writing Risk Assessments at work, I am writing a database (Sheet 2) of Risks that by means of a Tick Box would like to add the relevant Risk (Line) to the top sheet (Sheet 1).

    So on (Sheet 2) I have Columns A through to L of information, I would like to COPY a line from B to H to (Sheet 1) with a starting point of C17 but each Tick Box on (Sheet 2) I Select it will add it to the next available line and hopefully if I Deselect it it will not leave a blank line, then from the (Sheet 1) I can modify the contents if required.

    (Sheet 2) will be a Master Database and (Sheet 1) will be the Risk Assessment, I have started the WorkBook with some data so that you can see what I am trying to achieve.
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Selection box to copy cells to another Sheet in next available row

    Try the attached file. I've deleted the check boxes to make programming easier. Instead of using a check box, just type in the letter 'x' in column A and exit the cell. The range for that row will be copied to Sheet1. Hopefully, this approach works for you. If you must use the check boxes, please let me know and we'll go from there.
    Attached Files Attached Files
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    01-04-2012
    Location
    Derby, England
    MS-Off Ver
    2010, 2013 2016 Pro
    Posts
    85

    Re: Selection box to copy cells to another Sheet in next available row

    Thanks Mumps1

    It does exactly what I want in principal but without the Tick Box, so all is good, My preference is a Tick Box as it is clearer and easier for anyone to use without explanation but I'll give it a go and see how people get on with it.

    Thanks for helping

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Selection box to copy cells to another Sheet in next available row

    I'm glad it is working for you. Again, if you really need the check boxes, please let me know.

  5. #5
    Registered User
    Join Date
    01-04-2012
    Location
    Derby, England
    MS-Off Ver
    2010, 2013 2016 Pro
    Posts
    85

    Re: Selection box to copy cells to another Sheet in next available row

    We have given the form a try but the office want it all singing and dancing so they want the Tick Boxes

    I have done some research and come up with a solution that fits my needs and I have modified it to do almost what i need, the bit I am struggling with is adding the data to a specific location on the main form (Sheet 1), how can i modify the below code to start in a set location, A14 for example, at the moment it starts at A2, I just cant see how its done from the code I have.

    I have found a work around by adding data to column a up to where i want to start, but this isn't the answer

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by RoyLittle0; 10-31-2016 at 04:25 PM.

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Selection box to copy cells to another Sheet in next available row

    I deleted the data you entered in the range A1:A13 and tried your macro and it seemed to work properly. The data started copying at row 14.

  7. #7
    Registered User
    Join Date
    01-04-2012
    Location
    Derby, England
    MS-Off Ver
    2010, 2013 2016 Pro
    Posts
    85

    Re: Selection box to copy cells to another Sheet in next available row

    That's because I have data in column A, if you insert another column it will add the data to A2 because that is the first available A column and row.

    What I want is to add to a specific line irrespective of what may be in the cells above or below the area, because this will all change when I add content to the top and bottom of the form.

    Also if I add information at the bottom of the page below where I want the data to be inserted, this also effect the location that I insert to, because it looks for the last clear cell in Column A which will be below the last data in column A.

    Have a look at the spreadsheet, I have added some more information in different sections above and below where I want the data to be inserted (sorry I didn't make my problem very clear)
    Attached Files Attached Files
    Last edited by RoyLittle0; 11-02-2016 at 04:22 PM.

+ 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] Copy the sheet based on ComboBox Value Selection
    By nawas in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-04-2016, 04:46 AM
  2. [SOLVED] How to change the code in dropdown multiple selection lsit to copy to other cells in sheet
    By ajanson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-09-2016, 11:16 AM
  3. Replies: 5
    Last Post: 07-12-2015, 08:32 AM
  4. [SOLVED] Linking cells from one sheet to another and update cells accordingly based on selection
    By hcyeap in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-17-2013, 09:53 AM
  5. Replies: 2
    Last Post: 05-15-2012, 02:08 AM
  6. Replies: 3
    Last Post: 11-12-2010, 04:31 AM
  7. Command button copy selection to another sheet
    By hlester in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-09-2009, 03:11 PM

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