+ Reply to Thread
Results 1 to 2 of 2

VBA - How to check for certain string in cell and paste into other between sheets

  1. #1
    Registered User
    Join Date
    06-09-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    92

    Question VBA - How to check for certain string in cell and paste into other between sheets

    is it possible to do this:

    Stock number is in Column A , Listing Title is in Column D. Template is in same excel file in a new sheet.

    Attachment 160960

    This is a picture of the Stock number (column A) and product-name (column D)

    Attachment 160961

    This is the template that will be on a new sheet (First sheet will be called "Seller Central Category" and the second sheet will be called "Sheet1"), this contains all of the colours to be filled.

    Attachment 160963

    This is the end result, before and after.

    Each spreadsheet this macro will be used on can have upto 8 sizes, this is the reason for blank lines in the following picture. (for example sizes 2-9 would work in the macro).

    Attachment 160966

    This is the example of the kind of data we will be working on.

    So to recap..
    1. Macro switches to the second sheet which will be named "Sheet1"
    2. Macro then takes the colour from cell B2 and adds it to the end of the contents of cells in sheet 1 : column d, for 12 sizes (if blank it will just leave blank)
    3. It then gets the size from the end of stock number
    4. adds to end of the colour that was just added in column D

    Here is some sample data
    Attachment 160967


    Also, how do we learn more about VBA programming? Are there any good resources you can recommend for learning?[

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: VBA - How to check for certain string in cell and paste into other between sheets

    See if this helps with how to learn more about VBA.
    http://www.excelforum.com/excel-prog...-in-class.html
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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