LIST BOX IN EXCEL

User avatar
HansV
Administrator
Posts: 78488
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: LIST BOX IN EXCEL

Post by HansV »

Replace the code I posted above with

Code: Select all

    If Me.Machine = "SELECT ALL" Then
        Select Case ComboBox1.Value
            Case "AIRBUS"
                Worksheets("TPM QRQC (2)").Range("B6") = Application.CountA _
                    (Worksheets("AddNew").Range("D8:D100"))
            Case "GCU"
                Worksheets("TPM QRQC (2)").Range("B7") = Application.CountA _
                    (Worksheets("AddNew").Range("G8:G100"))
            Case "FALCON"
                Worksheets("TPM QRQC (2)").Range("B8") = Application.CountA _
                    (Worksheets("AddNew").Range("I8:I100"))
            Case "AC"
                Worksheets("TPM QRQC (2)").Range("B9") = Application.CountA _
                    (Worksheets("AddNew").Range("K8:K100"))
            Case "DC"
                Worksheets("TPM QRQC (2)").Range("B10") = Application.CountA _
                    (Worksheets("AddNew").Range("M8:M100"))
            Case "MRO"
                Worksheets("TPM QRQC (2)").Range("B11") = Application.CountA _
                    (Worksheets("AddNew").Range("O8:O100"))
        End Select
    End If
Best wishes,
Hans

krishnaa_kumarr88
2StarLounger
Posts: 179
Joined: 30 Sep 2014, 15:18

Re: LIST BOX IN EXCEL

Post by krishnaa_kumarr88 »

thanks a lot

User avatar
HansV
Administrator
Posts: 78488
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: LIST BOX IN EXCEL

Post by HansV »

I forgot to change the cell reference B6 to B7, B8 etc. I have edited my previous reply to correct that.
Best wishes,
Hans

krishnaa_kumarr88
2StarLounger
Posts: 179
Joined: 30 Sep 2014, 15:18

Re: LIST BOX IN EXCEL

Post by krishnaa_kumarr88 »

cheers