+ Reply to Thread
Results 1 to 10 of 10

Copy data and count list number

  1. #1
    Registered User
    Join Date
    09-30-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    85

    Copy data and count list number

    Evening,

    Basically, I have a list of data in columns B,C,D, and an ascending number in column A. Three cells in G10,H10 and I10 can now be copied over to B,C,D no matter long the list (see post underneath) however I need it to simultaneous add an ascending number to column A once the macro is run.

    Attached workbook shows two example situations in sheet 1 and 2, and a completed form in sheet 3(based on sheet 2 example).

    Thanks in advance!
    Attached Files Attached Files
    Last edited by brad999; 03-20-2014 at 04:00 AM.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Copy data to below the first cell containing data

    You want to paste to:

    Range("A" & Rows.Count).End(xlUp).Offset(1)

    This is the first blank cell below the last occupied cell in column A.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    09-30-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Copy data to below the first cell containing data

    Excellent daffodil! One more thing I forgot to take account of...column A actually has an ascending number for each list, and when new data is pasted under it I need it too add 1 to the number in column A. Attached sheet updated... Is this possible?

  4. #4
    Registered User
    Join Date
    09-30-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Copy data and count list number

    Anyone know how to add an ascending number to the list? Attached sheet above has the part working macro I'm using

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

    Re: Copy data to below the first cell containing data

    Maybe:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    09-30-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Copy data and count list number

    Thanks John! One more thing..id like to paste the data as values...and I cant see a 'paste' in that code, to add in
    Please Login or Register  to view this content.
    perhaps?

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

    Re: Copy data and count list number

    Try:

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    09-30-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Copy data and count list number

    Thanks john, however I am modifying this slightly for my purpose,I'm copying data from sheet 2, b50:y50 and trying to paste into the data list in sheet 1, with the ascending number in column A. However adding activatesheet(1) in between the 2 lines of code doesn't allow the data to be pasted to sheet 1.


    However I modified the first solution you had and it worked fine, not sure if anything with the paste as values code doesn't work across sheets?

  9. #9
    Registered User
    Join Date
    09-30-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Copy data and count list number

    Nevermind, I've sorted it! Just have activatesheets2 at the first like of code and activatesheets1 before the range to be copied! Thanks very much john !

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

    Re: Copy data and count list number

    You're welcome. Glad to help out and thanks for the feedback. Don't forget to mark this thread as solved.

+ 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] Formula Needed to copy data from a cell based on data entered into another cell
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-10-2013, 03:16 AM
  2. [SOLVED] If data entered in cell, on same row, copy and paste data from other cells to front sheet
    By Christopher135 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-27-2013, 06:34 PM
  3. [SOLVED] Copy data with 4 cell interval and copy range of data like vlookup with structured output
    By Daydreams in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-23-2013, 04:08 AM
  4. Enter data, copy formulas, copy values, paste data, delete data
    By alf40 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-15-2013, 07:23 PM
  5. Replies: 1
    Last Post: 02-15-2013, 08:17 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