Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27348

message box

$
0
0
hi
i have this bit of code at start of my app
Code:

Dim oApp As New Excel.Application
        Dim oWBa As Workbook = oApp.Workbooks.Open(txtFileName.Text)
        Dim oWSSheet As Worksheet = DirectCast(oWBa.Worksheets("APAC Trial Balance(All Classes)"), Worksheet)

what i want is a message box that appears if when i open my workbook the sheet APAC Trial Balance(All Classes) is not in the excel file

Viewing all articles
Browse latest Browse all 27348

Trending Articles