+ Reply to Thread
Results 1 to 10 of 10

Copy Entire Row to different sheet based on Date selected

  1. #1
    Forum Contributor her.rockstar's Avatar
    Join Date
    01-11-2013
    Location
    Saint John, NB
    MS-Off Ver
    Office 365
    Posts
    194

    Copy Entire Row to different sheet based on Date selected

    Hello, I've got a thread posted at https://www.ozgrid.com/forum/forum/h...-date-selected
    I haven't had much luck eliciting any support, if it's possible and there's someone willing to help me out that would be fantastic.

    Thanks!

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Copy Entire Row to different sheet based on Date selected

    Hello her.rockstar,

    Would you consider this approach, which does not limit you to the Date Selected only?

    Please Login or Register  to view this content.
    See and try attached sample workbook.

    Regards.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Contributor her.rockstar's Avatar
    Join Date
    01-11-2013
    Location
    Saint John, NB
    MS-Off Ver
    Office 365
    Posts
    194

    Re: Copy Entire Row to different sheet based on Date selected

    Hey Winon, that's a really sharp workbook. In practice it works really great.

    The concern I have is that it will be for my wife and the added steps of selecting the desired range on one page, and then the desired range on the second page would be far too much. Just having it grab the line and paste it over the corresponding line on the next page automatically is really what I'm after.

    I love how this works though.

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Copy Entire Row to different sheet based on Date selected

    Thank you her.rockstar,

    Please could you provide more info w.r.t. in which column the date resides, etc,?

    Also, please attach a sample workbook (not a picture or pasted copy).

    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.

    Regards.

  5. #5
    Forum Contributor her.rockstar's Avatar
    Join Date
    01-11-2013
    Location
    Saint John, NB
    MS-Off Ver
    Office 365
    Posts
    194

    Re: Copy Entire Row to different sheet based on Date selected

    Hey, I had uploaded the file to the other website. Shouldn't have assumed that would have been enough.

    The value for the desired date is found on Calendar!AQ1
    Essentially, I need the row from Calendar!E14:AI14 copied to the correct row on the Results sheet, beginning in column B, except offset down by one row (below the dates)
    Attached Files Attached Files

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Copy Entire Row to different sheet based on Date selected

    Hello her.rockstar,

    I have done 2019 for you. Is that what you want?

    We use the Formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Regards.
    Attached Files Attached Files

  7. #7
    Forum Contributor her.rockstar's Avatar
    Join Date
    01-11-2013
    Location
    Saint John, NB
    MS-Off Ver
    Office 365
    Posts
    194

    Re: Copy Entire Row to different sheet based on Date selected

    Oh dear, I don't think I've been clear enough in my ask. Please accept my apology as I haven't meant to waste yours or anyone else's time.

    You're correct with how it should look, those results are in the correct spot, but I'm not looking for formulas on the Results page. What I'm hoping for is VBA code for the "Add Schedule" button. It will search the Results Page (column A) for the month/year selected in (Calendar!F11/I11), go down one row, and over one column, and then paste the values from Calendar!E14:AI14.

    Again, I'm so sorry I haven't been clear. If this still isn't clear, please let me know. And thank you, thank you.

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy Entire Row to different sheet based on Date selected

    The code assumes you are looking for a single match based on Year and month selections.
    I am unable to attach it to a button as all your buttons have already been assigned, but you can do it yourself.
    You have lots of merged cells, which are not VBA's friendly.
    The code is very sensitive to the layout of the data, so any change will render the code prone to error.
    Attached Files Attached Files

  9. #9
    Forum Contributor her.rockstar's Avatar
    Join Date
    01-11-2013
    Location
    Saint John, NB
    MS-Off Ver
    Office 365
    Posts
    194

    Re: Copy Entire Row to different sheet based on Date selected

    This perfect AB33! Thank you so much for your help, I'm looking forward to studying what you've done here. Thank you too, again Winon. You've both been great.

  10. #10
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Copy Entire Row to different sheet based on Date selected

    @ AB33,

    AB33 to the rescue, with excellent observations and Coding!!! Thank you Sir!

    Kudos to you, my friend!

    @ her.rockstar,

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    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. Copy selected columns from rows one one sheet to another based on a date criteria...
    By bmasella in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2017, 11:07 PM
  2. Replies: 5
    Last Post: 12-15-2014, 05:43 AM
  3. Replies: 0
    Last Post: 06-26-2014, 11:31 AM
  4. How to copy an entire row from one sheet to another based on criteria
    By Mian USman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-12-2013, 04:17 AM
  5. Copy entire row to new sheet based on value VB
    By btrede in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-19-2012, 05:21 AM
  6. Macro to copy entire row to the sheet selected from the list in the cell
    By ashu611 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-24-2012, 01:52 AM
  7. Copy rows to new sheet based on date range selected on a form
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-19-2009, 11:40 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