+ Reply to Thread
Results 1 to 2 of 2

Copy and paste relative data with loop

  1. #1
    Registered User
    Join Date
    06-19-2015
    Location
    Michigan
    MS-Off Ver
    2010
    Posts
    30

    Copy and paste relative data with loop

    Hello all,

    I have what seems to be a relatively complicated problem. I need to write a macro that consolidates data from a Google Form into a readable invoice. The data pulled from the form looks like this:

    Date Child 1 Child 2 Child 3
    2/1/17 After Care Morning Care
    2/2/17 Morning Care After Care
    2/3/17 After Care After Care

    I need all of the dates associated with an entry under each child copied and pasted in their own specified sheets. Currently, I have code that loops through all of the child names and creates a new sheet for them. This is my code for that:

    Please Login or Register  to view this content.
    What I would like it to do within that for loop would be:
    -Loop through each cell in a column
    -If the cell <> blank then
    -Copy the cell value AND relative date
    -Go to the specific child's sheet (as specified currently by cel.value)
    -Paste the date in the next blank row in their sheet

    If anyone has any insight into this I would be most grateful.

    Thanks!

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Copy and paste relative data with loop

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. Data copy paste loop
    By rizabdullah in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-20-2016, 12:02 PM
  2. Copy and Paste Chart and Data // Want Relative References, Not Absolute
    By AdamParker in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-25-2014, 12:05 PM
  3. [SOLVED] Copy dynamically changing column and Paste using VBA Loop (Loop within Loop)
    By nixon72 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-12-2013, 12:46 PM
  4. Loop to Copy/Paste Defined Data
    By AlvaroSiza in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-22-2011, 02:31 PM
  5. Using relative cell locations to copy in loop?
    By mpkavanagh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-16-2011, 07:02 PM
  6. Macro copy paste data loop
    By rhudgins in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-25-2010, 09:34 PM
  7. Copy and paste data in a loop
    By rhudgins in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2010, 05:05 AM

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