+ Reply to Thread
Results 1 to 1 of 1

Help on Multiple Dates Please!

  1. #1
    Registered User
    Join Date
    10-30-2012
    Location
    Iowa
    MS-Off Ver
    Excel 2007
    Posts
    30

    Help on Multiple Dates Please!

    I really hope that someone can help me. I have a code that works for the file called "Dummy File Current" which is attached. It looks up the part number under the Want tab and pulls in the dates under the respective tabs and places it under the respective column under the Want tab. Now that I've added some more tabs in the excel file called "Want New", I DO NOT know how to rework the code where it does the same function as "Dummy File Current." Can someone please help so that the code under "Dummy File Current", which is provided below, will do the same for the "Want New."

    PHP Code: 

    Option Explicit 

    Sub DummyFile
    () 
        
    Dim aAs Longii As Longw
        With CreateObject
    ("Scripting.Dictionary"
            .
    CompareMode 
            
    For 6 To 9 
                a 
    Sheets(IIf(Or 7"R""W") & " WIW").Cells(1
                    
    .CurrentRegion.Value 
                
    For ii 2 To UBound(a1
                    If 
    a(i5) <> "" Then 
                        
    For Each e In Split(a(ii5), ", "
                            If 
    Not .exists(Trim$(e)) Then 
                                ReDim w
    (1 To 4
                            Else 
                                
    = .Item(Trim$(e)) 
                            
    End If 
                            
    w(5) = w(5) & 
                                IIf
    (w(5) <> """ , """) & a(ii2
                            .
    Item(Trim$(e)) = 
                        Next 
                    End 
    If 
                
    Next 
            Next 
            With Sheets
    ("want").Cells(1).CurrentRegion 
                
    .Columns("b:e").Offset(1).ClearContents 
                a 
    = .Value 
            End With 
            
    For 2 To UBound(a1
                If .
    exists(a(i1)) Then 
                    
    For ii 1 To 4 
                        a
    (iii 1) = .Item(a(i1))(ii
                    
    Next 
                End 
    If 
            
    Next 
        End With 
        Sheets
    ("want").Cells(1).CurrentRegion.Value 
    End Sub  

    Seriously
    any help is appreciated

    Attached FilesDummy File Current.xlsx&#8206;(146.9 KB, 1 views) 
    Want New.xlsx&#8206;(96.1 KB, 1 views) 
    Attached Files Attached Files

+ 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