+ Reply to Thread
Results 1 to 11 of 11

Copy paste code required

  1. #1
    Registered User
    Join Date
    08-04-2015
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    82

    Copy paste code required

    Hello Everyone,

    Please find the attached sample sheets in which i require a VBA code to copy paste data as per below requirement

    currently How i copy and paste right now is:
    1- first i copy and paste from location to contact person in a new sheet then
    2 -copy and paste 16th mar 20 whole column data against the above (point 1), so that i can get project names against employee names, location and etc.
    3 - then i again repeat point 1 and filter non blanks from 1st additional project names which is next to 16th march date column (Yellow highlighted) and i paste it then i remove filter from yellow column and repeat point 1 and filter non blank in additional project names (this time its red)
    4 - then again i remove filter from everything and repeat from point 1 to point 4 for 17th March date
    5 - i have do this for whole month, but i get data weekly.

    Important point is wherever date is mentioned should be copy and pasted with blanks and additional projects names should be copy and pasted without blanks.

    Any help would be appreciated..
    Attached Files Attached Files
    You can add reputation(s) of those who helped

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,203

    Re: Copy paste code required

    Hi sam1105

    Here is a very basic entry level code...
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    08-04-2015
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    82

    Re: Copy paste code required

    Hi,

    Thank you for your time and your code works perfect..

    Just want to add one more thing which i missed in my previous post.. can i get a column of dates in the end. Attached example sheet. (Solution test sheet highlighted in yellow)
    Attached Files Attached Files
    Last edited by sam1105; 04-13-2020 at 03:41 AM.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,203

    Re: Copy paste code required

    Attached example sheet
    Where.....?

  5. #5
    Registered User
    Join Date
    08-04-2015
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    82

    Re: Copy paste code required

    Done...post edited and attached

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,203

    Re: Copy paste code required

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    08-04-2015
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    82

    Re: Copy paste code required

    It works like a charm!..Absolutely brilliant work. Thank you for your time and help.

    Thanks a ton :-)

  8. #8
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,203

    Re: Copy paste code required

    Glad I could contribute...Tx for rep

  9. #9
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Copy paste code required

    A little more speed can never hurt

    Please Login or Register  to view this content.
    Last edited by Vraag en antwoord; 04-13-2020 at 12:06 PM.

  10. #10
    Registered User
    Join Date
    08-04-2015
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    82

    Re: Copy paste code required

    Thanks Vraag en antwoord , as you rightly said this works faster and deliver results quickly.. thank you both ( Sintek and Vraag en antwoord)

  11. #11
    Registered User
    Join Date
    08-04-2015
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    82

    Re: Copy paste code required

    Hi Vraag,

    I just noticed that code which you have provided copy and paste with blanks, not as i mentioned or as sintek provided. i have few criterias while copy paste which i have mentioned in 01st post where sintek code works properly.

+ 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] Automatic copy paste VBA required
    By sam1105 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-04-2020, 10:39 AM
  2. Copy paste required data from one workbook to another
    By prabhuduraraj09 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2019, 09:26 AM
  3. Required help in modifying the code.. (COPY & PASTE)
    By Revathi kannan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-15-2019, 09:21 AM
  4. Macro required - copy and paste into new workbook.
    By BurnsyNI in forum Excel General
    Replies: 1
    Last Post: 08-30-2011, 09:32 AM
  5. code required to copy and paste rows matching a criteria.
    By Duguid1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-30-2008, 04:49 AM
  6. simple copy paste macro required
    By normanjones4 in forum Excel General
    Replies: 2
    Last Post: 02-27-2007, 12:00 PM
  7. copy and paste help required
    By khalid79m in forum Excel General
    Replies: 4
    Last Post: 01-06-2007, 09:52 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