You are on page 1of 2

How to open File in Excel VBA

'Open the file to copy cells from FileToOpen = Application.GetOpenFilename _ (Title:=Write your message here", _ FileFilter:="Excel Files *.xls (*.xls),") '' If FileToOpen = False Then 'MsgBox No file selected.", vbExclamation, Please try again!!!" 'Now clear temp cells End if

You might also like