G
Guest
Im trying to write a macro to prompt a user to select a file and then open it.
This is the link to the file that I keep trying:
C:\Documents and Settings\All Users\Documents\Coop Students\Small Package
Rates\UPS rates\2006\Air\
The file is then in that Air folder.
The year (2006) is the second input box and the file name is the first.
This is what i have so far:
I keep getting error- GetOpenfilname application failed
Sub Macro112_4()
Dim filetypenm As String
filetypenm = InputBox("Enter File Name you would like to compare")
Dim nm As Integer
nm = InputBox("Enter Year you would like to compare")
Application.GetOpenFilename (["C:\Documents and
Settings\AllUsers\Documents\Coop Students\Small Package Rates\UPS rates\" &
nm & "\Air\" & filetypenm])
End Sub
HELP PLEASE!
Thanks in advance,
Mikayla
This is the link to the file that I keep trying:
C:\Documents and Settings\All Users\Documents\Coop Students\Small Package
Rates\UPS rates\2006\Air\
The file is then in that Air folder.
The year (2006) is the second input box and the file name is the first.
This is what i have so far:
I keep getting error- GetOpenfilname application failed
Sub Macro112_4()
Dim filetypenm As String
filetypenm = InputBox("Enter File Name you would like to compare")
Dim nm As Integer
nm = InputBox("Enter Year you would like to compare")
Application.GetOpenFilename (["C:\Documents and
Settings\AllUsers\Documents\Coop Students\Small Package Rates\UPS rates\" &
nm & "\Air\" & filetypenm])
End Sub
HELP PLEASE!
Thanks in advance,
Mikayla