Posts by pankaj2610

    Hello,
    I wish to show the low alert rows colour differently in listview. That means whenever the sum of balance is equal to or lower than vaule in sum of low alert the figure in sum of balance gets into different colour or the row gets different colour, can anybody help to sort out the same
    The Code use for this is as follows:


    [TABLE="class: grid, width: 500, align: left"]

    [tr]


    [td]

    [TABLE="width: 105"]

    [tr]


    [td]

    Row Labels

    [/td]


    [/tr]


    [/TABLE]

    [/td]


    [td]

    [TABLE="width: 185"]

    [tr]


    [td]

    Sum of Available Stock (KG )

    [/td]


    [/tr]


    [/TABLE]

    [/td]


    [td]

    [TABLE="width: 108"]

    [tr]


    [td]

    Sum of Wastage

    [/td]


    [/tr]


    [/TABLE]

    [/td]


    [td]

    [TABLE="width: 113"]

    [tr]


    [td]

    Sum of Low Alert

    [/td]


    [/tr]


    [/TABLE]

    [/td]


    [/tr]


    [tr]


    [td]

    [TABLE="width: 79"]

    [tr]


    [TD="class: xl65, width: 105, bgcolor: transparent"]Blue Ver.3

    [/tr][/td][tr]


    [/tr]


    [tr]


    [TD="class: xl65, bgcolor: transparent"]Blue Ver.4[/TD]

    [/tr]


    [tr]


    [TD="class: xl65, bgcolor: transparent"]Blue Ver.6[/TD]

    [/tr]


    [tr]


    [TD="class: xl65, bgcolor: transparent"]Green L202[/TD]

    [/tr]


    [tr]


    [TD="class: xl65, bgcolor: transparent"]Magenta Ver.3[/TD]

    [/tr]


    [tr]


    [TD="class: xl65, bgcolor: transparent"]Mixing Solution[/TD]

    [/tr]


    [tr]


    [TD="class: xl65, bgcolor: transparent"]Orange Ver.3[/TD]

    [/tr]


    [tr]


    [TD="class: xl65, bgcolor: transparent"]Orange Ver.6[/TD]

    [/tr]


    [tr]


    [TD="class: xl65, bgcolor: transparent"]Red Ver.3[/TD]

    [/tr]


    [tr]


    [TD="class: xl65, bgcolor: transparent"]Red Ver.4[/TD]

    [/tr]


    [tr]


    [TD="class: xl65, bgcolor: transparent"]Yellow Ver.3[/TD]

    [/tr]


    [tr]


    [TD="class: xl65, bgcolor: transparent"]Yellow Ver.4[/TD]

    [/tr]


    [/TABLE]
    [/TD]

    [td]

    [TABLE="width: 185"]

    [tr]


    [TD="align: right"]3030

    [/tr][/td][tr]


    [/tr]


    [tr]


    [TD="align: right"]150[/TD]

    [/tr]


    [tr]


    [TD="align: right"]1000[/TD]

    [/tr]


    [tr]


    [TD="align: right"]185[/TD]

    [/tr]


    [tr]


    [TD="align: right"]75[/TD]

    [/tr]


    [tr]


    [TD="align: right"]100[/TD]

    [/tr]


    [tr]


    [TD="align: right"]75[/TD]

    [/tr]


    [tr]


    [TD="align: right"]70[/TD]

    [/tr]


    [tr]


    [TD="align: right"]394.28[/TD]

    [/tr]


    [tr]


    [TD="align: right"]50[/TD]

    [/tr]


    [tr]


    [TD="align: right"]100[/TD]

    [/tr]


    [tr]


    [TD="align: right"]55[/TD]

    [/tr]


    [/TABLE]
    [/TD]

    [td]

    [TABLE="width: 108"]

    [tr]


    [TD="align: right"]0

    [/tr][/td][tr]


    [/tr]


    [tr]


    [TD="align: right"]0[/TD]

    [/tr]


    [tr]


    [TD="align: right"]0[/TD]

    [/tr]


    [tr]


    [TD="align: right"]0[/TD]

    [/tr]


    [tr]


    [TD="align: right"]0[/TD]

    [/tr]


    [tr]


    [TD="align: right"]0[/TD]

    [/tr]


    [tr]


    [TD="align: right"]0[/TD]

    [/tr]


    [tr]


    [TD="align: right"]0[/TD]

    [/tr]


    [tr]


    [TD="align: right"]2.74[/TD]

    [/tr]


    [tr]


    [TD="align: right"]0[/TD]

    [/tr]


    [tr]


    [TD="align: right"]0[/TD]

    [/tr]


    [tr]


    [TD="align: right"]0[/TD]

    [/tr]


    [/TABLE]
    [/TD]

    [td]

    [TABLE="width: 113"]

    [tr]


    [TD="align: right"]75

    [/tr][/td][tr]


    [/tr]


    [tr]


    [TD="align: right"]75[/TD]

    [/tr]


    [tr]


    [TD="align: right"]75[/TD]

    [/tr]


    [tr]


    [TD="align: right"]75[/TD]

    [/tr]


    [tr]


    [TD="align: right"]75[/TD]

    [/tr]


    [tr]


    [TD="align: right"]75[/TD]

    [/tr]


    [tr]


    [TD="align: right"]75[/TD]

    [/tr]


    [tr]


    [TD="align: right"]75[/TD]

    [/tr]


    [tr]


    [TD="align: right"]75[/TD]

    [/tr]


    [tr]


    [TD="align: right"]75[/TD]

    [/tr]


    [tr]


    [TD="align: right"]75[/TD]

    [/tr]


    [tr]


    [TD="align: right"]75[/TD]

    [/tr]


    [/TABLE]
    [/TD]

    [/tr]


    [/TABLE]

    Hi,
    I tried using following code to import data from Listview to excel sheet, but it overwrites data instead of pasting the data to last row/ new rows, Can anybody guide here:

    Hello,
    I a struggling to import the items (data) in listview to excel sheet, with the followin code I am able to import the data in excel sheet but each time it over write the earlier data. I wish to copy the data in new row or last row. The code is as follows:

    Re: Copy selected Listitems from Listview to excel sheet


    Hello,
    The followin code works perfectly for Listbox but when tried for listview its not working can anybody suggest the necessary changes in it.

    Code
    Private Sub CommandButton1_Click()
        Dim i As Long, j As Long
        For i = 0 To Me.ListBox1.ListCount - 1
            If Me.ListBox1.Selected(i) Then
                j = j + 1
                Worksheets("Sheet1").Range("A" & i + 2).Resize(1, 6).Copy Worksheets("Sheet2").Range("A" & Rows.Count).End(xlUp).Offset(1)
            End If
        Next i
        MsgBox j & " Rows Copied To Sheet 2 - Have a look if you dont beleive me"
    End Sub

    Re: Copy selected Listitems from Listview to excel sheet


    I am really unable to understand, Can anybody help me to sort out

    Re: Copy selected Listitems from Listview to excel sheet


    Hello,
    I am really not very good in VBA, I
    have attach your code as you have send it as a example to try it out. so I thought it will serve my purpose.
    In my first question itself I requested the help to copy selected items in listview to excelsheet.
    Once again request to kindly help to sort out, I am willing to learn the new things.

    Re: Copy selected Listitems from Listview to excel sheet


    It is showing the selected items but copying all the items to sheet

    Re: Copy selected Listitems from Listview to excel sheet


    Hello,
    I was able to now copy the data from listview to the activeworkbook and dedicated sheet also with following code. But the question is how to copy only selected items from listview, can anybody suggest the code for the same:

    Hello,
    I would like to copy the slected listitems from listview to a dedicated excel sheet Sheet 14 (Selection) in the active workbook. I am trying with following code but with this code its opening new workbook and copying the whole listview can any body help to sort out

    Re: Activesheet Refresh All status on messenger box or on userform


    I have tried following code but its showing error

    Code
    For i = 1 To ActiveWorkbook.Connections.Count
        ActiveWorkbook.Connections(i).OLEDBConnection.BackgroundQuery = False
        'MsgBox ActiveWorkbook.Connections(i).OLEDBConnection.BackgroundQuery
    Next
    
    
    ActiveWorkbook.RefreshAll

    Hello,
    I have a excelsheet which get update from server after refersh all. The data after referesh need to be in userform lisatview. But what happens is that the listview userform is displayed & refresh is working in background hence updated data cant be displayed in userform listview. I am able to open userform after a delay of 1 minutes but sometime if the data is huge it does not get updated, so userform open after 1 minute without updated data. Can anybody help to sort out.
    Is it possible to show the achitveworkbook referesh status on messener box or on userform, so that user will be aware that referesh is still active and as soon as activeworkbook refresh completed desired userform opens.