Results 1 to 2 of 2

Search and assign by criteria and create new content with custom pattern

Threaded View

pomper Search and assign by criteria... 06-18-2017, 08:31 AM
jindon Re: Search and assign by... 06-18-2017, 09:08 AM
  1. #1
    Registered User
    Join Date
    02-06-2015
    Location
    London,England
    MS-Off Ver
    Excel 2010
    Posts
    34

    Search and assign by criteria and create new content with custom pattern

    Hello

    I have reference numbers list that is assigned to different categories and subcategories. Number "1" links ref # to its categories and subcategories as you can see on attached image.
    How to write VBA code that assignes different categories and subcategories to its ref # according to the following pattern below with slash and comma:


    ref # ee2233
    categories main-category/subcategory,main-category-y/sub-category-y


    Sub categories()
    
    lastrow = ThisWorkbook.Sheets("categories").Cells(Rows.Count, 1).End(xlUp).Row
    
    For x = 4 To lastrow
        For y = 4 To 10
        
        If Range(Cells(b & 4, b & 4), Cells(j & lastrow, j10) = 1 Then
        
    
        
        Next y
    Next x
    
    
    End Sub
    1z4h8xf.jpg
    Attached Files Attached Files
    Last edited by pomper; 06-18-2017 at 08:48 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Create User form to perform search using multiple search criteria
    By cherias in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-29-2015, 06:16 AM
  2. Create a search userform to search using multiple criteria
    By Aleemaher in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-31-2014, 09:17 AM
  3. Custom Function to Create and Assign Button
    By dkang2007 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-30-2014, 02:44 PM
  4. Replies: 0
    Last Post: 01-15-2013, 08:18 PM
  5. How to create Advanced Search Criteria
    By RajaSekar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-28-2008, 05:54 AM
  6. Replies: 2
    Last Post: 01-18-2008, 11:45 AM
  7. [SOLVED] custom cell pattern colors
    By Shooter in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-10-2005, 04:06 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