Question: I have a checkbox column in gridview and getting its Click event. But I just has relised I do not need Click event rather I need to know the events if checkbox is checked or unchecked on Client side. But these events are not available.

Please guide how to handle this.

Answer: 
*By suggestion of Marc Gravell, I change my comment into an answer:*

I can think of two reasons why your code breaks in VB.NET:

* If in VB you use somewhere in your code On Error Resume Next (oh horror), then you don't see it in VB, but will see it in VB.NET (because it doesn't allow errors to be ignored).
* You tagged Excel. I assume you went from an older version of Excel to a newer version or you moved your code from Excel to stand-alone VB.NET. A whole host of non VB-related changes might cause an error to popup.

Why you get an error about a printer not being available (or any of the other pointers Jon gave you), I don't know, but you might try that specific question on <http://superuser.com>.
This is the VB.Net version as if you would use it in an vb.net-exe. It will not work in EXCEL.VBA, but as I understand it you wanted a VB.Net version?

```
Imports Microsoft.Office.Interop

Sub ChangePivotTableSourceData()
    Dim e As New Excel.Application
    e.Workbooks.Open("c:\testdoc.xlsx", , True) 'Open the doc readonly
    Dim sheet As Excel.Worksheet = e.ActiveSheet

    For Each table As Excel.PivotTable In sheet.PivotTables
        table.SourceData = "'" + Split(table.SourceData, "]")(1)
    Next

    e.ActiveWorkbook.SaveAs("c:\testdoc_changed.xlsx") 'Save under another name
    e.ActiveWorkbook.Close()
    e.Quit()
    sheet = Nothing
    e = Nothing
End Sub

```