Hi.
I need vb6 code in order to open excel file in readonly mode.
My needs are create an vb6 exe file.
I have very good know in vba but vb6 I am beguinner.
Thanks in advance.
asihuay
option explicit
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' DECLARE EXCEL VARIABLE
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Public XLApp As Excel.Application
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' OPEN WORKBOOK
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Public Sub OpenXL()
Set XLApp = New Excel.Application
XLApp.Workbooks.Open App.Path + "Workbook1.xls", ReadOnly:=True
XLApp.Visible = True
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.