This is what I do to open a file.
CMDialog1.Filter = "TextRiter (*.trt)|*.trt|Plain Text (*.txt)|*.txt|All Files (*.*)|*.*" CMDialog1.FilterIndex = 1 CMDialog1.DefaultExt = "TRT" CMDialog1.Filename = "*.trt" CMDialog1.Flags = &H4& Or &H2& CMDialog1.MaxFileSize = 2048 CMDialog1.CancelError = True CMDialog1.Action = 1 OpeningFile$ = CMDialog1.Filename Open OpeningFile$ For ...
Is this what you needed?
It looks like you're new here. If you want to get involved, click one of these buttons!