+ Reply to Thread
Results 1 to 2 of 2

VBA for projects with mulitple dates again

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

    VBA for projects with mulitple dates again

    Hi All-

    I recently submitted a topic about grabbing multiple dates for part numbers. But that required me to copy and paste each WIW sheet one by one and run the code.

    Attached is the file that I'm looking at. Under "Sheet1", this is what I'm currently doing. However, the worksheet called "Want" is what I would like it to do. And I'm uncertain about how to go about this.

    The Dummy Part numbers are numbers that I enter and then I would like it to look at 7R WIW, 8W WIW and 9W WIW to see if they have the dates associated with it. How do I make it look like the "Want" Sheet? I'm currently stuck. Any help is appreciated!

    "Sheet1" runs off this code:
    PHP Code: 
    Sub Dummy_File()
     
    Dim aAs Longptr As Long
     Dim sPartNum 
    As StringsOutput As String
     
     
     ptr 
    3
     With Worksheets
    ("sheet1")
        Do While .
    Cells(ptr"a") <> vbNullString
            sPartNum 
    = .Cells(ptr"a")
            For 
    1 To 300
               
    If InStr(1, .Cells(i"e").ValuesPartNumvbTextCompare) > 0 Then
                   sOutput 
    sOutput & .Cells(i"d") & ","
               
    End If
            
    Next
            With 
    .Cells(ptr"b")
                .
    ClearContents
                
    If sOutput <> "" Then
                    
    .Value Left$(sOutputLen(sOutput) - 1)
                    
    sOutput ""
                
    End If
            
    End With
            ptr 
    ptr 1
        Loop
     End With
    End Sub 
    Attached Files Attached Files

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

    Re: VBA for projects with mulitple dates again

    Can anybody help?

+ 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