[V8i VBA] Open Excel Workbook from ProjectWise Location

Hello,

How would I go about defining  the location of an excel file in ProjectWise so I can open it from MicroStation in VBA?  I currently have a userform that has a text box that users enter the excel file location manually (tbWBLocation).  See the inserted code for more.

Thanks,

   'Get an Excel workbook
   Dim oWorkbook As Excel.Workbook
    'this removes the extra quotes from the file location
   tbWBLocation = Replace(tbWBLocation, """", "")
    'tests if file exists
    If FileExists(tbWBLocation.Text) = False Then
        GoTo WBLocation_NOT_FOUND
    End If
   Set oWorkbook = oExcel.Workbooks.Open(tbWBLocation.Text)

Parents Reply Children
No Data