How To Change The Default File Path In RevitĪpplication.GetOpenFilename: GetOpenFilename « File Path « VBA / Excel / Access / Word ![]() Hello I am using the following code Code: Private Sub OpenFile() Dim fileName fileName = Application.GetOpenFilename( Ratings Sheet (*.xls),*.xls ) If. How To Change The Default File Path In Revit.4.| Email:info at | © Demo Source and Support. Get the selected file name in a file open dialog Sub GetImportFileName() Filt = 'Text Files (*.txt),*.txt,' & _ 'Lotus Files (*.prn),*.prn,' & _ 'Comma Separated Files (*.csv),*.csv,' & _ 'ASCII Files (*.asc),*.asc,' & _ 'All Files (*.*),*.*' FilterIndex = 5 Filename = Application.GetOpenFilename (FileFilter:=Filt, FilterIndex:=FilterIndex, Title:= 'Select a File to Import') If Filename = False Then MsgBox 'No file was selected.' Exit Sub End If Debug.Print Filename End Sub Related examples in the same category 1. ![]() ![]() Get the selected file name in a file open dialog: GetOpenFilename « File Path « VBA / Excel / Access / Word
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |