+ Reply to Thread
Results 1 to 7 of 7

VB Code to copy data

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to copy data

    Hello:

    Please refer to attached file.
    I will have data as shown in "Report" Sheet.
    I need VB Code to do the following.
    1. Create another sheet called "FINAL"
    2. Copy Column C data of "Report" sheet into Column A of "FINAL" sheet.
    3. Copy Column A data of "Report" sheet into Column B of "FINAL" sheet.
    4. Copy Column D data of "Report" sheet into Column C of "FINAL" sheet.
    5. Copy Column E data of "Report" sheet into Column E of "FINAL" sheet.
    6. Add text "Payroll:Gross" to column D of "FINAL" if text in corresponding cell on column F "Report"
    Sheet text is Payroll Check.
    Add text "Payroll:Taxes" to column D of "FINAL" if text in corresponding cell on column F "Report"
    Sheet text is Deposit EFTPS.


    Let me know if you have any questions.
    Thanks.
    RM
    Attached Files Attached Files

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2505
    Posts
    2,790

    Re: VB Code to copy data

    Hi Riz,
    Try this.

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to copy data

    Hi Skywriter:

    Works great...Thanks a lot
    RM

  4. #4
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2505
    Posts
    2,790

    Re: VB Code to copy data

    Thanks for the rep. points.

  5. #5
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to copy data

    Hi Skywriter:

    I forgot to ask one more favor.
    I will now have a list of Payee in "FINAL" Sheet starting at cell H2
    Now i need to see if any names in column C of "FINAL" sheet has names which is listed in Column H.
    If it finds then would like to change corresponding text in column D to text in I.
    I have attached the sheet.
    Let me know if any questions.
    Thanks
    RM
    Attached Files Attached Files

  6. #6
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2505
    Posts
    2,790

    Re: VB Code to copy data

    Try this.

    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to copy data

    Hi Skywriter:

    Works great.

    Thanks a lot

    Riz

+ 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. VB Code to copy certain data
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-23-2015, 03:57 PM
  2. VBA code to make of copy of workbook2 and then copy data in that from Workbook1
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2015, 06:34 AM
  3. Replies: 2
    Last Post: 09-08-2014, 07:35 AM
  4. VBA code to copy data from Excel data table to user form
    By Srikanth H N in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-03-2014, 11:53 AM
  5. VBA code to copy paste data in the end of another data
    By Pilot5000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-11-2014, 07:17 AM
  6. [SOLVED] VBA Code to Save Copy File without Macro Button and VBA Code on Copy?
    By cychua in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-12-2012, 07:23 AM
  7. Code to Copy Data to Every nth Row
    By Winon in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-07-2012, 05:38 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