Hello Friends,
VBA Automation Series - 30 (VBA code to open dialog box || select the File, Folder path dynamically)
In this video, You will learn a lot of things.
Displays the standard Open dialog box and gets a file name from the user without actually opening any files.
This string passed in the FileFilter argument consists of pairs of file filter strings followed by the MS-DOS wildcard file filter specification, with each part and each pair separated by commas. Each separate pair is listed in the Files of type drop-down list box. For example, the following string specifies two file filters—text and addin:
"Text Files (*.txt),*.txt,Add-In Files (*.xla),*.xla"
To use multiple MS-DOS wildcard expressions for a single file filter type, separate the wildcard expressions with semicolons; for example: "Visual Basic Files (*.bas; *.txt),*.bas;*.txt".
If FileFilter is omitted, this argument defaults to "All Files (*.*),*.*".
This method returns the selected file name or the name entered by the user. The returned name may include a path specification. If MultiSelect is True, the return value is an array of the selected file names (even if only one file name is selected). Returns False if the user cancels the dialog box.
This method may change the current drive or folder.
Click below link to see my channel Technical Justice Point
/ @technicaljusticepoint4340
#TechnicalJusticePoint #GetFileUsingDialogBOX #VbaCodeToOpenFileUsingDialogBox
Thanks
Ajit Kumar