+ Reply to Thread
Results 1 to 11 of 11

Macro for Selecting and Pasting into new cells??

  1. #1
    Registered User
    Join Date
    04-23-2013
    Location
    TN, United States
    MS-Off Ver
    Excel 2007
    Posts
    40

    Macro for Selecting and Pasting into new cells??

    Hello, I have many orders or products and when listed in excel it shows the SKU's and name along with other data. I would like to take this data and use just the SKU's and Product name. Everything else would not be used. Here is what the data looks like

    Quantity Product Details Price
    1 Product A
    SKU: 7Z-36Q9-LK1P
    ASIN: B009BTQ8S4
    Listing ID: 0916M1DMLSL
    Order-Item ID: 28255029918234
    Condition: New $14.99 Subtotal:
    Shipping: $3.66
    ________________________________________
    Total: $18.65

    2 Product B
    SKU: QP-PQXS-3CA8
    ASIN: B009FRAVUS
    Listing ID: 0924M9480RX
    Order-Item ID: 63126777937842
    Condition: New $12.99 Subtotal:
    Shipping: $6.34
    ________________________________________
    Total: $32.32

    ORDER TOTAL: $50.97

    I would like to run a macro and it show like the following
    SKU:7Z-36Q9-LK1P Product A
    SKU:QP-PQXS-3CA8 Product B

    The Sku's are in Column A, while the Product name is one row above the Sku in column B. I have tried many different ways of extracting this but all the code I have tried will only highlight the first SKU, it will not select ALL the Sku's and the copy them. Not sure where to really go from here....Anyone with knowledge of this I would appreciate help from. Thanks everyone!

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

    Re: Macro for Selecting and Pasting into new cells??

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. 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 demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    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

  3. #3
    Registered User
    Join Date
    02-03-2014
    Location
    Poland.Warsaw
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Macro for Selecting and Pasting into new cells??

    You want to get rapport of the orders in another sheet or want to delete unnecessary rows?

  4. #4
    Registered User
    Join Date
    04-23-2013
    Location
    TN, United States
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Macro for Selecting and Pasting into new cells??

    Example.xlsx

    I have attached the file. There are many more than the 4 orders shown. I have removed the buyers names and address and replaced with xxx. All other data is original. Sheet 1 contains how the data looks, Sheet 2 shows how I would like it shown after the macro is ran. I hope there is a way to do it as it would be a great time saver for us and the business. Thanks for your help!

  5. #5
    Registered User
    Join Date
    04-23-2013
    Location
    TN, United States
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Macro for Selecting and Pasting into new cells??

    I would like to get the Sku's and the Product name extracted in another sheet. I attached an example. Any help would be great. Thanks so much!

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

    Re: Macro for Selecting and Pasting into new cells??

    Try this:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-23-2013
    Location
    TN, United States
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: Macro for Selecting and Pasting into new cells??

    Quote Originally Posted by alansidman View Post
    Try this:

    Please Login or Register  to view this content.
    Worked like a charm! Thanks so much!!!!

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

    Re: Macro for Selecting and Pasting into new cells??

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

  9. #9
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    440

    Re: Macro for Selecting and Pasting into new cells??

    Hi alansidman,

    Can you also check my data because it's the same issue, but my data are all in 1 cell instead of separate cells.
    The result on my sample Sheet 2, I use RIGHT, MID to pull the data, so I wonder if I can run a macro to have all the data in 1 click.
    The header in Sheet 2 is to show you the order of the data to pull, having them or not is not the main thing. I need the data in the same order, that is more important.

    format.xlsx

    Please help!

    Thanks.

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

    Re: Macro for Selecting and Pasting into new cells??

    Calvinle:

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Older threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

  11. #11
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    440

    Re: Macro for Selecting and Pasting into new cells??

    Sorry, I thought it would be too much to recreate another same topic. I will create another topic now.

    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. macro for selecting several cells that are not next to each other
    By walterf45 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-11-2013, 01:48 AM
  2. Selecting, copy and pasting cells
    By patigonia in forum Excel General
    Replies: 9
    Last Post: 05-29-2012, 09:08 PM
  3. Selecting full cells on sheet1 and pasting into first available blank cell on sheet2
    By Kully_Singh in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-08-2012, 07:34 PM
  4. pasting problem after selecting "go to" cells
    By Santana20 in forum Excel General
    Replies: 2
    Last Post: 03-09-2010, 03:08 PM
  5. Selecting Cells With Sumproduct Formula, Then Pasting Its Value Over Top
    By Carroll in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-19-2005, 02:05 PM

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