+ Reply to Thread
Results 1 to 2 of 2

VBA to copy from one worksheet, convert data and paste to another worksheet

  1. #1
    Registered User
    Join Date
    09-13-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    1

    VBA to copy from one worksheet, convert data and paste to another worksheet

    My source sheet (attached) contains list of devices.

    Requirement:
    Copy data from "Device Data" sheet into different worksheets in a different workbook.

    Based on the column A (Device Type), I want to read the entire row, and copy the contents to another sheet.
    If the Device Type is 'iPad' or 'PC', I want to copy the row into another workbook in sheet called "Computer System"
    If the Device Type is 'Keyboard' or 'Mouse', I want to copy the row into another workbook in sheet called "Equipment"
    If the Device Type is 'Printer', I want to copy the row into another workbook in sheet called "Printer"

    Note that I would also like to add few more columns to the destination sheet based on the value of columns I read from source sheet.

    Can someone help.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,884

    Re: VBA to copy from one worksheet, convert data and paste to another worksheet

    Administrative note

    Your profile indicates you are using XL2003 yet the attached file with an .xlsx file type indicates something different.
    Please update your profile as necessary to properly reflect the exact version(s) of Excel your question relates to. Members tailor answers based on your Excel version.
    Thanks
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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 Highlighted Data from Worksheet and Paste to a New Worksheet in another workbook
    By kingsdime29x in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-28-2018, 10:56 PM
  2. Copy Data from One Worksheet and Paste it into a specific Worksheet in a different workboo
    By kingsdime29x in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-22-2018, 02:09 PM
  3. Copy Data from Another Worksheet and Paste it to Another Worksheet
    By puuts in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-21-2013, 01:59 AM
  4. Copy/Paste Worksheet Data from one to another with varying locations within Worksheet
    By lfwake2wake in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-22-2013, 11:27 AM
  5. Macro to copy data from one worksheet and paste to another worksheet
    By robertmiller in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-01-2013, 09:56 AM
  6. [SOLVED] Copy data from a worksheet and paste to worksheet with a similar worksheet name
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-21-2012, 04:02 AM
  7. Copy data from a worksheet and paste to worksheet with a similar worksheet name
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-21-2012, 02:49 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