+ Reply to Thread
Results 1 to 14 of 14

copy data

  1. #1
    Registered User
    Join Date
    06-06-2021
    Location
    Jeddah
    MS-Off Ver
    2016
    Posts
    14

    copy data

    Hi
    I've data in sheet"Data", and like to:
    1- copy all data if the birth date (in Column D) less or equal to certain date to sheet (birth_date)
    2- copy all data if the Graduate_date (in Column E) less or equal to certain date to sheet (Graduate_date)

    Regards
    Attached Files Attached Files

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: copy data

    Possibly...
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-06-2021
    Location
    Jeddah
    MS-Off Ver
    2016
    Posts
    14

    Re: copy data

    Thank you,
    Working great, but how I can use cells to enter each of dates (cell for each one)?

  4. #4
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: copy data

    Try...
    Please Login or Register  to view this content.
    Change the ranges to whatever works for you. Suggest you add Data Validation to those cells to accept only dates.

  5. #5
    Registered User
    Join Date
    06-06-2021
    Location
    Jeddah
    MS-Off Ver
    2016
    Posts
    14

    Re: copy data

    It works, I'm doing some changes as needed. appreciate your help

  6. #6
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: copy data

    Glad I could help!

  7. #7
    Registered User
    Join Date
    06-06-2021
    Location
    Jeddah
    MS-Off Ver
    2016
    Posts
    14

    Re: copy data

    Hi,

    Quote Originally Posted by dangelor View Post
    Try...Option Explicit
    <= or />=
    Sorry for bothering you again.

    1- I need to use this as a variable in the cell with the date. (So, no need to change the code each time)
    For example
    <= 01/01/1980 or >= 01/01/1980
    2- I want to renumber copied rows in (birth_date) sheet.
    Last edited by abdjed; 06-14-2021 at 11:06 AM.

  8. #8
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: copy data

    Possibly...
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    06-06-2021
    Location
    Jeddah
    MS-Off Ver
    2016
    Posts
    14

    Re: copy data

    yes, it works.
    But after adding a big data, I found that it's not working if there's a blank column(s) in between.

  10. #10
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: copy data

    Suggest you remove the blank columns. If that isn't possible, change this line of code to include all the needed data.
    Please Login or Register  to view this content.
    Last edited by dangelor; 06-16-2021 at 06:53 AM.

  11. #11
    Registered User
    Join Date
    06-06-2021
    Location
    Jeddah
    MS-Off Ver
    2016
    Posts
    14

    Re: copy data

    Sorry for being late,
    Unfortunately, it doesn't work, and the last code is copying everything include unwanted rows. I'm still trying and hope to get a solutions.

    Regards

  12. #12
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: copy data

    Unfortunately, it doesn't work, and the last code is copying everything include unwanted rows.
    Please post the code you're using.

  13. #13
    Registered User
    Join Date
    06-06-2021
    Location
    Jeddah
    MS-Off Ver
    2016
    Posts
    14

    Re: copy data

    It's the one you sent it in post #10

  14. #14
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: copy data

    That post suggested a change to a particular line of code. Did you change it? If so, what was the change?

+ 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 data from active cell and also copy some another cell copy that data in another sheet
    By keshavtale in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-28-2021, 06:49 PM
  2. Replies: 1
    Last Post: 08-21-2020, 10:47 AM
  3. [SOLVED] Code to copy data does not copy last row in source data
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-29-2018, 05:09 AM
  4. Copy data from sheet1 column with dynamic date, and copy data to second sheet column
    By Renaliiii in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-25-2016, 04:44 PM
  5. Saving copy of data and then running macro on all active worksheets in saved copy?
    By Science87 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-09-2014, 11:56 AM
  6. [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
  7. 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

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