MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
Public Sub Test() Dim FilePath As String = "C:\Change to Your Path\Test Doc.docx" ' Create a new instance of word and open some document in it Dim WordInstance As New Microsoft.Office.Interop.Word.Application Dim Document As Microsoft.Office.Interop.Word.Document = WordInstance.Documents.Open(FilePath) ' Now try to create a readonly stream (to send a copy of our ' changes back to the server) Dim fStream As FileStream = Nothing Try fStream = New FileStream(Me._FilePath, FileMode.Open, FileAccess.Read, FileShare.Read) Catch ex As Exception MessageBox.Show("Error: " & ex.Message) Finally If fStream IsNot Nothing Then fStream.Close() fStream = Nothing End If End Try WordInstance.Quit() End Sub
|Excel 2016 lost MRU list||8||66|
|Excel 2013 - default cell reference has changed from relative to absolute||7||22|
|Convert VB web project to C#||3||35|
|Excel - Data Validation - Dynamic Weekday||11||23|